reverted last change (don't create new colour in FindColour())
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@24266 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -336,7 +336,7 @@ wxColour *wxColourDatabase::FindColour(const wxString& colour)
|
||||
const wxChar *key = node->GetKeyString();
|
||||
if ( colName == key || colName2 == key )
|
||||
{
|
||||
return new wxColour(*((wxColour *)node->Data()));
|
||||
return (wxColour *)node->Data();
|
||||
}
|
||||
|
||||
node = node->Next();
|
||||
|
Reference in New Issue
Block a user