X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b0f76951bc2d09a53d7e035e665fd348403c98f9..9534d0dfdc3c6fad8ea5d5fd31bbb6f20650929b:/src/motif/font.cpp 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 )