Applied patch [ 638561 ] Allow SetFont(wxNullFont) in wxGTK

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18125 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2002-12-09 09:14:39 +00:00
parent ce788ad93a
commit 77416abdc5
2 changed files with 20 additions and 14 deletions

View File

@@ -1732,6 +1732,8 @@ void wxWindowDC::SetFont( const wxFont &font )
m_font = font; m_font = font;
#ifdef __WXGTK20__ #ifdef __WXGTK20__
if (m_font.Ok())
{
m_fontdesc = m_font.GetNativeFontInfo()->description; m_fontdesc = m_font.GetNativeFontInfo()->description;
if (m_owner) if (m_owner)
@@ -1741,6 +1743,7 @@ void wxWindowDC::SetFont( const wxFont &font )
else else
m_context = m_owner->GtkGetPangoDefaultContext(); m_context = m_owner->GtkGetPangoDefaultContext();
} }
}
#endif #endif
} }

View File

@@ -1732,6 +1732,8 @@ void wxWindowDC::SetFont( const wxFont &font )
m_font = font; m_font = font;
#ifdef __WXGTK20__ #ifdef __WXGTK20__
if (m_font.Ok())
{
m_fontdesc = m_font.GetNativeFontInfo()->description; m_fontdesc = m_font.GetNativeFontInfo()->description;
if (m_owner) if (m_owner)
@@ -1741,6 +1743,7 @@ void wxWindowDC::SetFont( const wxFont &font )
else else
m_context = m_owner->GtkGetPangoDefaultContext(); m_context = m_owner->GtkGetPangoDefaultContext();
} }
}
#endif #endif
} }