From: Vadim Zeitlin Date: Sun, 16 Sep 2007 23:53:16 +0000 (+0000) Subject: compilation fix X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/efb35bebfacaffbf68123be0bff79d7bf0d2dee2?ds=inline compilation fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48731 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/motif/font.cpp b/src/motif/font.cpp index d378180775..fc503f190f 100644 --- a/src/motif/font.cpp +++ b/src/motif/font.cpp @@ -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 )