]> git.saurik.com Git - wxWidgets.git/commitdiff
Unicode compilation fix
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 30 Oct 2006 21:45:42 +0000 (21:45 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 30 Oct 2006 21:45:42 +0000 (21:45 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42772 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/x11/colour.cpp

index 6000924c832e2b9fd0858a4f260685073edb794c..2890656e0ef901b333f42c686acc53d54d813351 100644 (file)
@@ -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();