X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e651143ca8d906d286dff5e60770adf285081b65..cc24bf919256e8e1d317dbb8e67df6d007d641ea:/src/x11/colour.cpp 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();