diff --git a/include/wx/generic/listctrl.h b/include/wx/generic/listctrl.h index a7b8a1b872..f1ab86bb64 100644 --- a/include/wx/generic/listctrl.h +++ b/include/wx/generic/listctrl.h @@ -32,8 +32,9 @@ class WXDLLIMPEXP_FWD_CORE wxListMainWindow; class WXDLLIMPEXP_CORE wxGenericListCtrl: public wxNavigationEnabled, public wxScrollHelper { -public: + typedef wxNavigationEnabled BaseType; +public: wxGenericListCtrl() : wxScrollHelper(this) { Init(); diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index 97222ebbfb..e4ce5b2672 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -5462,7 +5462,7 @@ bool wxGenericListCtrl::SetForegroundColour( const wxColour &colour ) bool wxGenericListCtrl::SetFont( const wxFont &font ) { - if ( !wxWindow::SetFont( font ) ) + if (!BaseType::SetFont(font)) return false; if (m_mainWin)