]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/font.cpp
check that the version of __sync_sub_and_fetch that returns a value is supported...
[wxWidgets.git] / 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;