avoid making copy of font description
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70713 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
2432e39563
commit
622226dc73
1 changed files with 2 additions and 1 deletions
|
|
@ -245,8 +245,9 @@ wxControl::GetDefaultAttributesFromGTKWidget(GtkWidget* widget,
|
|||
if ( style && style->font_desc )
|
||||
{
|
||||
wxNativeFontInfo info;
|
||||
info.description = pango_font_description_copy(style->font_desc);
|
||||
info.description = style->font_desc;
|
||||
attr.font = wxFont(info);
|
||||
info.description = NULL;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue