calling ApplyWidgetStyle, so make sure we don't use an invalid colour.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26920
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
}
}
- if ( m_hasBgCol )
+ if ( m_hasBgCol && m_backgroundColour.Ok() )
{
m_backgroundColour.CalcPixel( gtk_widget_get_colormap( m_widget ) );
if (m_backgroundColour != wxSystemSettings::GetColour(wxSYS_COLOUR_BTNFACE))
}
}
- if ( m_hasBgCol )
+ if ( m_hasBgCol && m_backgroundColour.Ok() )
{
m_backgroundColour.CalcPixel( gtk_widget_get_colormap( m_widget ) );
if (m_backgroundColour != wxSystemSettings::GetColour(wxSYS_COLOUR_BTNFACE))