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:
parent
94a1ccb9cd
commit
8536ce5b3f
@ -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())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user