Font crash and timer fix as per 2_4.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21248 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2003-06-19 19:06:06 +00:00
parent 8eabf55943
commit 7b14c561d9
4 changed files with 28 additions and 12 deletions

View File

@@ -4047,7 +4047,7 @@ void wxWindowGTK::SetWidgetStyle()
{
#ifdef __WXGTK20__
pango_font_description_free( style->font_desc );
pango_font_description_copy( m_font.GetNativeFontInfo()->description );
style->font_desc = pango_font_description_copy( m_font.GetNativeFontInfo()->description );
#else
gdk_font_unref( style->font );
style->font = gdk_font_ref( m_font.GetInternalFont( 1.0 ) );