diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 2035b1d9f3..dc090b9114 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -4070,7 +4070,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 ) ); diff --git a/src/gtk1/window.cpp b/src/gtk1/window.cpp index 2035b1d9f3..dc090b9114 100644 --- a/src/gtk1/window.cpp +++ b/src/gtk1/window.cpp @@ -4070,7 +4070,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 ) );