]> git.saurik.com Git - wxWidgets.git/commitdiff
(blind) compilation fix
authorVáclav Slavík <vslavik@fastmail.fm>
Fri, 15 Jun 2007 09:57:57 +0000 (09:57 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Fri, 15 Jun 2007 09:57:57 +0000 (09:57 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46474 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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;
     {
         case _T('I'):   // italique
             m_style = wxFONTSTYLE_ITALIC;