don't try to create a color named "Default"

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63817 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett 2010-04-01 16:59:34 +00:00
parent 94a1ccb9cd
commit 8536ce5b3f

View File

@ -641,8 +641,10 @@ wxRibbonGalleryItem* MyFrame::AddColourToGallery(wxRibbonGallery *gallery,
wxColour* value)
{
wxRibbonGalleryItem* item = NULL;
wxColour c(colour);
if(value != NULL)
wxColour c;
if (colour != wxT("Default"))
c = wxColour(colour);
if (!c.IsOk())
c = *value;
if(c.IsOk())
{