Fix base class call of virtual SetFont() in wxGenericListCtrl

Hard-coding 'wxWindow' improperly bypasses an override in wxControl on GTK3
This commit is contained in:
Paul Cornett
2020-01-27 11:27:39 -08:00
parent d03a5c1155
commit 26f58bdf78
2 changed files with 3 additions and 2 deletions

View File

@@ -32,8 +32,9 @@ class WXDLLIMPEXP_FWD_CORE wxListMainWindow;
class WXDLLIMPEXP_CORE wxGenericListCtrl: public wxNavigationEnabled<wxListCtrlBase>, class WXDLLIMPEXP_CORE wxGenericListCtrl: public wxNavigationEnabled<wxListCtrlBase>,
public wxScrollHelper public wxScrollHelper
{ {
public: typedef wxNavigationEnabled<wxListCtrlBase> BaseType;
public:
wxGenericListCtrl() : wxScrollHelper(this) wxGenericListCtrl() : wxScrollHelper(this)
{ {
Init(); Init();

View File

@@ -5462,7 +5462,7 @@ bool wxGenericListCtrl::SetForegroundColour( const wxColour &colour )
bool wxGenericListCtrl::SetFont( const wxFont &font ) bool wxGenericListCtrl::SetFont( const wxFont &font )
{ {
if ( !wxWindow::SetFont( font ) ) if (!BaseType::SetFont(font))
return false; return false;
if (m_mainWin) if (m_mainWin)