X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ae1daed0739bf3c60b5bff4fbda823be2ee67872..df0e1b64e382510896c2ae3849cca91baede40d7:/src/x11/dcclient.cpp?ds=sidebyside diff --git a/src/x11/dcclient.cpp b/src/x11/dcclient.cpp index 8307fe264c..c6c808c376 100644 --- a/src/x11/dcclient.cpp +++ b/src/x11/dcclient.cpp @@ -1375,7 +1375,7 @@ void wxWindowDC::DoDrawText( const wxString &text, wxCoord x, wxCoord y ) slen = strlen(text); XCharStruct overall_return; - (void)XTextExtents(xfont, text.c_str(), slen, &direction, + (void)XTextExtents(xfont, (char*) text.c_str(), slen, &direction, &ascent, &descent, &overall_return); cx = overall_return.width;