fix creating wxFont with non-ascii name, closes #16671

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@78141 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett
2014-11-12 07:43:06 +00:00
parent 6b9910ac8c
commit 574a636640
2 changed files with 5 additions and 3 deletions

View File

@@ -52,7 +52,7 @@ protected:
public: // used by the GTK callback only
void SetNativeFontInfo(const char *gtkdescription)
{ m_selectedFont.SetNativeFontInfo(wxString::FromAscii(gtkdescription)); }
{ m_selectedFont.SetNativeFontInfo(wxString::FromUTF8(gtkdescription)); }
private:
DECLARE_DYNAMIC_CLASS(wxFontButton)