From: Vadim Zeitlin Date: Mon, 30 Oct 2006 21:45:42 +0000 (+0000) Subject: Unicode compilation fix X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e651143ca8d906d286dff5e60770adf285081b65 Unicode compilation fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42772 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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();