interpret m_has..Col, m_hasFont correctly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27903 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -4024,15 +4024,15 @@ GtkRcStyle *wxWindowGTK::CreateWidgetStyle(bool forceStyle)
|
|||||||
{
|
{
|
||||||
// do we need to apply any changes at all?
|
// do we need to apply any changes at all?
|
||||||
if ( !forceStyle &&
|
if ( !forceStyle &&
|
||||||
!m_hasFont && !m_hasFgCol &&
|
!m_font.Ok() &&
|
||||||
(!m_hasBgCol || !m_backgroundColour.Ok()) )
|
!m_foregroundColour.Ok() && !m_backgroundColour.Ok() )
|
||||||
{
|
{
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
GtkRcStyle *style = gtk_rc_style_new();
|
GtkRcStyle *style = gtk_rc_style_new();
|
||||||
|
|
||||||
if ( m_hasFont )
|
if ( m_font.Ok() )
|
||||||
{
|
{
|
||||||
#ifdef __WXGTK20__
|
#ifdef __WXGTK20__
|
||||||
style->font_desc =
|
style->font_desc =
|
||||||
|
@@ -4024,15 +4024,15 @@ GtkRcStyle *wxWindowGTK::CreateWidgetStyle(bool forceStyle)
|
|||||||
{
|
{
|
||||||
// do we need to apply any changes at all?
|
// do we need to apply any changes at all?
|
||||||
if ( !forceStyle &&
|
if ( !forceStyle &&
|
||||||
!m_hasFont && !m_hasFgCol &&
|
!m_font.Ok() &&
|
||||||
(!m_hasBgCol || !m_backgroundColour.Ok()) )
|
!m_foregroundColour.Ok() && !m_backgroundColour.Ok() )
|
||||||
{
|
{
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
GtkRcStyle *style = gtk_rc_style_new();
|
GtkRcStyle *style = gtk_rc_style_new();
|
||||||
|
|
||||||
if ( m_hasFont )
|
if ( m_font.Ok() )
|
||||||
{
|
{
|
||||||
#ifdef __WXGTK20__
|
#ifdef __WXGTK20__
|
||||||
style->font_desc =
|
style->font_desc =
|
||||||
|
Reference in New Issue
Block a user