]> git.saurik.com Git - wxWidgets.git/commitdiff
don't return wxFONTENCODING_DEFAULT from wxFont::GetEncoding(), this results in asser...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 31 Mar 2007 15:10:20 +0000 (15:10 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 31 Mar 2007 15:10:20 +0000 (15:10 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45188 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/font.cpp

index 11e7b20c644e18e6132feaad0097a991be110154..94cc8e66d5f6e10f0bd29d7444f2d11ae0429448 100644 (file)
@@ -157,6 +157,8 @@ void wxFontRefData::Init(int pointSize,
 
     m_underlined = underlined;
     m_encoding = encoding;
+    if ( m_encoding == wxFONTENCODING_DEFAULT )
+        m_encoding = wxFont::GetDefaultEncoding();
 
     m_noAA = false;