Build fix for wxDataViewCtrl after wxSystemThemedControl changes

wxSystemThemedControl is a template class and can't be used without template
arguments even though MSVC somehow compiled it -- but g++, quite justifiably,
refused to do it.
This commit is contained in:
Vadim Zeitlin
2015-09-23 01:19:54 +02:00
parent fad14c4660
commit 81c6c6eeed

View File

@@ -5421,10 +5421,11 @@ void wxDataViewCtrl::ToggleSortByColumn(int column)
void wxDataViewCtrl::DoEnableSystemTheme(bool enable, wxWindow* window)
{
wxSystemThemedControl::DoEnableSystemTheme(enable, window);
wxSystemThemedControl::DoEnableSystemTheme(enable, m_clientArea);
typedef wxSystemThemedControl<wxControl> Base;
Base::DoEnableSystemTheme(enable, window);
Base::DoEnableSystemTheme(enable, m_clientArea);
if ( m_headerArea )
wxSystemThemedControl::DoEnableSystemTheme(enable, m_headerArea);
Base::DoEnableSystemTheme(enable, m_headerArea);
}
#endif // !wxUSE_GENERICDATAVIEWCTRL