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
|
// VZ: make the comparaison case insensitive and also match both grey and
|
||||||
// gray
|
// gray
|
||||||
wxString col = colour;
|
wxString colName = colour;
|
||||||
col.MakeUpper();
|
colName.MakeUpper();
|
||||||
wxString col2 = col;
|
wxString colName2 = colName;
|
||||||
if ( !col2.Replace(_T("GRAY"), _T("GREY")) )
|
if ( !colName2.Replace(_T("GRAY"), _T("GREY")) )
|
||||||
col2.clear();
|
colName2.clear();
|
||||||
|
|
||||||
wxNode *node = First();
|
wxNode *node = First();
|
||||||
while ( node )
|
while ( node )
|
||||||
{
|
{
|
||||||
const wxChar *key = node->GetKeyString();
|
const wxChar *key = node->GetKeyString();
|
||||||
if ( col == key || col2 == key )
|
if ( colName == key || colName2 == key )
|
||||||
{
|
{
|
||||||
return (wxColour *)node->Data();
|
return (wxColour *)node->Data();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user