diff --git a/src/common/gdicmn.cpp b/src/common/gdicmn.cpp index a2c7cb5a8c..6cbe1a5d9e 100644 --- a/src/common/gdicmn.cpp +++ b/src/common/gdicmn.cpp @@ -388,7 +388,7 @@ void wxColourDatabase::AddColour(const wxString& name, const wxColour& colour) } else // new colour { - (*m_map)[name] = new wxColour(colour); + (*m_map)[colName] = new wxColour(colour); } }