Probable fix for Font crash.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21246 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -4070,7 +4070,7 @@ void wxWindowGTK::SetWidgetStyle()
|
|||||||
{
|
{
|
||||||
#ifdef __WXGTK20__
|
#ifdef __WXGTK20__
|
||||||
pango_font_description_free( style->font_desc );
|
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
|
#else
|
||||||
gdk_font_unref( style->font );
|
gdk_font_unref( style->font );
|
||||||
style->font = gdk_font_ref( m_font.GetInternalFont( 1.0 ) );
|
style->font = gdk_font_ref( m_font.GetInternalFont( 1.0 ) );
|
||||||
|
@@ -4070,7 +4070,7 @@ void wxWindowGTK::SetWidgetStyle()
|
|||||||
{
|
{
|
||||||
#ifdef __WXGTK20__
|
#ifdef __WXGTK20__
|
||||||
pango_font_description_free( style->font_desc );
|
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
|
#else
|
||||||
gdk_font_unref( style->font );
|
gdk_font_unref( style->font );
|
||||||
style->font = gdk_font_ref( m_font.GetInternalFont( 1.0 ) );
|
style->font = gdk_font_ref( m_font.GetInternalFont( 1.0 ) );
|
||||||
|
Reference in New Issue
Block a user