From bd0ee1b06f045c551838e8d8258828dc6746931d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 22 Oct 2003 21:49:34 +0000 Subject: [PATCH] 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 --- src/common/gdicmn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/gdicmn.cpp b/src/common/gdicmn.cpp index 77d7134499..09222b21d4 100644 --- a/src/common/gdicmn.cpp +++ b/src/common/gdicmn.cpp @@ -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();