+ wxColour *col = (wxColour*)node->Data();
+ UnRef();
+ if (col) Ref( *col );
+ }
+ else
+ {
+ m_refData = new wxColourRefData();
+ if (!gdk_color_parse( colourName.mb_str(), &M_COLDATA->m_color ))
+ {
+ // VZ: asserts are good in general but this one is triggered by
+ // calling wxColourDatabase::FindColour() with an
+ // unrecognized colour name and this can't be avoided from the
+ // user code, so don't give it here
+ //
+ // a better solution would be to changed code in FindColour()
+
+ //wxFAIL_MSG( wxT("wxColour: couldn't find colour") );
+
+ delete m_refData;
+ m_refData = (wxObjectRefData *) NULL;
+ }