]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/font.cpp
no changes, just a typo fix
[wxWidgets.git] / src / gtk1 / font.cpp
index 03e3fd5521b75b5dc4b1a30ae570dfb9f70f032d..a8524ccd8b7322a03fc29b7f92f314cb614c4def 100644 (file)
@@ -153,6 +153,8 @@ private:
     friend class wxFont;
 };
 
+#define M_FONTDATA ((wxFontRefData*)m_refData)
+
 // ----------------------------------------------------------------------------
 // wxFontRefData
 // ----------------------------------------------------------------------------
@@ -213,8 +215,8 @@ void wxFontRefData::InitFromNative()
         }
     }
 
-    switch ( wxToupper(*m_nativeFontInfo.
-                            GetXFontComponent(wxXLFD_SLANT).c_str()) )
+    switch ( wxToupper(m_nativeFontInfo.
+                           GetXFontComponent(wxXLFD_SLANT)[0u]).GetValue() )
     {
         case _T('I'):   // italique
             m_style = wxFONTSTYLE_ITALIC;