]> git.saurik.com Git - wxWidgets.git/blobdiff - src/x11/font.cpp
implement wxGetCientDisplayRect() correctly for X11-based ports
[wxWidgets.git] / src / x11 / font.cpp
index 859175c11bfb522768cc126c36ed29701dabd4f8..3b0f09338f71b4b3603d1ec44835c734dd3fa10f 100644 (file)
@@ -325,8 +325,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;