compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7705 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user