From 78067d6c40db3cf7babadc5ab1457c35d2de8bde Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 7 Jul 2000 09:58:42 +0000 Subject: [PATCH] compilation fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7705 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/gdicmn.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/common/gdicmn.cpp b/src/common/gdicmn.cpp index a47687b1bf..7a1eae5c80 100644 --- a/src/common/gdicmn.cpp +++ b/src/common/gdicmn.cpp @@ -240,17 +240,17 @@ wxColour *wxColourDatabase::FindColour(const wxString& colour) { // VZ: make the comparaison case insensitive and also match both grey and // gray - wxString col = colour; - col.MakeUpper(); - wxString col2 = col; - if ( !col2.Replace(_T("GRAY"), _T("GREY")) ) - col2.clear(); + wxString colName = colour; + colName.MakeUpper(); + wxString colName2 = colName; + if ( !colName2.Replace(_T("GRAY"), _T("GREY")) ) + colName2.clear(); wxNode *node = First(); while ( node ) { const wxChar *key = node->GetKeyString(); - if ( col == key || col2 == key ) + if ( colName == key || colName2 == key ) { return (wxColour *)node->Data(); } @@ -276,7 +276,7 @@ wxColour *wxColourDatabase::FindColour(const wxString& colour) #ifdef __WXGTK__ wxColour *col = new wxColour( colour ); - + if (!(col->Ok())) { delete col; return (wxColour *) NULL;