X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/462deb5dcef1bd194c08a6e9206cec901e3edc0c..3cb6eaec797ebbe20a0e05e5c9ba625909845e72:/src/gtk1/font.cpp diff --git a/src/gtk1/font.cpp b/src/gtk1/font.cpp index 03e3fd5521..a8524ccd8b 100644 --- a/src/gtk1/font.cpp +++ b/src/gtk1/font.cpp @@ -153,6 +153,8 @@ private: friend class wxFont; }; +#define M_FONTDATA ((wxFontRefData*)m_refData) + // ---------------------------------------------------------------------------- // wxFontRefData // ---------------------------------------------------------------------------- @@ -213,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;