X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6991087b08355e652866e97d3a8211103864ed8f..68ca12fef650ce4622e05ba4eb21a7aa23849107:/src/motif/font.cpp diff --git a/src/motif/font.cpp b/src/motif/font.cpp index 07db51f0ab..fc503f190f 100644 --- a/src/motif/font.cpp +++ b/src/motif/font.cpp @@ -61,7 +61,7 @@ public: #endif #if !wxMOTIF_USE_RENDER_TABLE WXFontList m_fontList; // Motif XmFontList -#else // if wxUSE_RENDER_TABLE +#else // if wxMOTIF_USE_RENDER_TABLE WXRenderTable m_renderTable; // Motif XmRenderTable WXRendition m_rendition; // Motif XmRendition #endif @@ -147,7 +147,7 @@ wxXFont::~wxXFont() if (m_fontList) XmFontListFree ((XmFontList) m_fontList); m_fontList = NULL; -#else // if wxUSE_RENDER_TABLE +#else // if wxMOTIF_USE_RENDER_TABLE if (m_renderTable) XmRenderTableFree ((XmRenderTable) m_renderTable); m_renderTable = NULL; @@ -679,7 +679,8 @@ void wxGetTextExtent(WXDisplay* display, const wxFont& font, XCharStruct overall; int slen = str.length(); - XTextExtents((XFontStruct*) pFontStruct, (char*) str.mb_str(), slen, + XTextExtents((XFontStruct*) pFontStruct, + wx_const_cast(char*, (const char *)str.mb_str()), slen, &direction, &ascent2, &descent2, &overall); if ( width )