SetFont may temporarily rset the background to wxNullColour before
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
This commit is contained in:
@@ -4206,7 +4206,7 @@ void wxWindowGTK::SetWidgetStyle()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( m_hasBgCol )
|
if ( m_hasBgCol && m_backgroundColour.Ok() )
|
||||||
{
|
{
|
||||||
m_backgroundColour.CalcPixel( gtk_widget_get_colormap( m_widget ) );
|
m_backgroundColour.CalcPixel( gtk_widget_get_colormap( m_widget ) );
|
||||||
if (m_backgroundColour != wxSystemSettings::GetColour(wxSYS_COLOUR_BTNFACE))
|
if (m_backgroundColour != wxSystemSettings::GetColour(wxSYS_COLOUR_BTNFACE))
|
||||||
|
@@ -4206,7 +4206,7 @@ void wxWindowGTK::SetWidgetStyle()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( m_hasBgCol )
|
if ( m_hasBgCol && m_backgroundColour.Ok() )
|
||||||
{
|
{
|
||||||
m_backgroundColour.CalcPixel( gtk_widget_get_colormap( m_widget ) );
|
m_backgroundColour.CalcPixel( gtk_widget_get_colormap( m_widget ) );
|
||||||
if (m_backgroundColour != wxSystemSettings::GetColour(wxSYS_COLOUR_BTNFACE))
|
if (m_backgroundColour != wxSystemSettings::GetColour(wxSYS_COLOUR_BTNFACE))
|
||||||
|
Reference in New Issue
Block a user