]> git.saurik.com Git - wxWidgets.git/commitdiff
src/X11/font.cpp needs smae change as other wxXXX versions
authorJouk Jansen <joukj@hrem.nano.tudelft.nl>
Tue, 9 Oct 2007 09:20:32 +0000 (09:20 +0000)
committerJouk Jansen <joukj@hrem.nano.tudelft.nl>
Tue, 9 Oct 2007 09:20:32 +0000 (09:20 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49107 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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;