X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cb5ec61f651e62d7028abb8d60a11efa786a7466..676c8c1d39a6b598fe32443c3517a66464ff8c5a:/src/x11/font.cpp diff --git a/src/x11/font.cpp b/src/x11/font.cpp index 859175c11b..3b0f09338f 100644 --- a/src/x11/font.cpp +++ b/src/x11/font.cpp @@ -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;