X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e651143ca8d906d286dff5e60770adf285081b65..a2dd2ea753f431b08ba4119d67ba90f6ca5e3966:/src/x11/colour.cpp?ds=inline diff --git a/src/x11/colour.cpp b/src/x11/colour.cpp index 2890656e0e..26dfeded95 100644 --- a/src/x11/colour.cpp +++ b/src/x11/colour.cpp @@ -245,12 +245,12 @@ WXColor *wxColour::GetColor() const return (WXColor*) &M_COLDATA->m_color; } -bool wxColour::FromString(const wxChar *name) +bool wxColour::FromString(const wxString& name) { Display *dpy = wxGlobalDisplay(); WXColormap colormap = wxTheApp->GetMainColormap( dpy ); XColor xcol; - if ( XParseColor( dpy, (Colormap)colormap, wxConvertWX2MB(name), &xcol ) ) + if ( XParseColor( dpy, (Colormap)colormap, name.mbc_str(), &xcol ) ) { UnRef();