fixed (?) crashes because of default GUI font being deleted
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9966 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
f3cf386509
commit
b1d1dc510d
@ -493,6 +493,12 @@ GdkFont *GtkGetDefaultGuiFont()
|
||||
}
|
||||
gtk_widget_destroy( widget );
|
||||
}
|
||||
else
|
||||
{
|
||||
// already have it, but ref it once more before returning
|
||||
gdk_font_ref(g_systemDefaultGuiFont);
|
||||
}
|
||||
|
||||
return g_systemDefaultGuiFont;
|
||||
}
|
||||
|
||||
|
@ -493,6 +493,12 @@ GdkFont *GtkGetDefaultGuiFont()
|
||||
}
|
||||
gtk_widget_destroy( widget );
|
||||
}
|
||||
else
|
||||
{
|
||||
// already have it, but ref it once more before returning
|
||||
gdk_font_ref(g_systemDefaultGuiFont);
|
||||
}
|
||||
|
||||
return g_systemDefaultGuiFont;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user