]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/font.cpp
Upport scrolling changes and mouse wheel changes.
[wxWidgets.git] / src / gtk1 / font.cpp
index 2125d300121a178bb1958ed80b9d972801ce30f7..a8524ccd8b7322a03fc29b7f92f314cb614c4def 100644 (file)
@@ -215,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;