merged 2.4 branch into the trunk
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -364,7 +364,8 @@ wxColour *wxColourDatabase::FindColour(const wxString& colour)
|
||||
#ifdef __WXGTK__
|
||||
wxColour *col = new wxColour( colour );
|
||||
|
||||
if (!(col->Ok())) {
|
||||
if (!(col->Ok()))
|
||||
{
|
||||
delete col;
|
||||
return (wxColour *) NULL;
|
||||
}
|
||||
@@ -382,7 +383,7 @@ wxColour *wxColourDatabase::FindColour(const wxString& colour)
|
||||
Display* display = (Display*) wxGetDisplay();
|
||||
#endif
|
||||
/* MATTHEW: [4] Use wxGetMainColormap */
|
||||
if (!XParseColor(display, (Colormap) wxTheApp->GetMainColormap((WXDisplay*) display), colour,&xcolour))
|
||||
if (!XParseColor(display, (Colormap) wxTheApp->GetMainColormap((WXDisplay*) display), colour.ToAscii() ,&xcolour))
|
||||
return NULL;
|
||||
|
||||
#if wxUSE_NANOX
|
||||
|
||||
Reference in New Issue
Block a user