X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/aea95b1c3a8ae221cc3aade5ce49a3cf848fd56a..03dc5fadefcef0fe2d3dde81611532d115eded30:/src/x11/colour.cpp?ds=sidebyside diff --git a/src/x11/colour.cpp b/src/x11/colour.cpp index 6000924c83..2890656e0e 100644 --- a/src/x11/colour.cpp +++ b/src/x11/colour.cpp @@ -250,7 +250,7 @@ bool wxColour::FromString(const wxChar *name) Display *dpy = wxGlobalDisplay(); WXColormap colormap = wxTheApp->GetMainColormap( dpy ); XColor xcol; - if ( XParseColor( dpy, (Colormap)colormap, name , &xcol ) ) + if ( XParseColor( dpy, (Colormap)colormap, wxConvertWX2MB(name), &xcol ) ) { UnRef();