#include "wx/dialog.h"
#include "wx/settings.h"
#include "wx/bitmap.h"
+ #include "wx/image.h"
#endif
#ifndef __WXWINCE__
#include "wx/tokenzr.h"
#include "wx/fontenum.h"
#include "wx/module.h"
-#include "wx/image.h"
#include "wx/fontmap.h"
#include "wx/artprov.h"
return wxNullColour;
}
-wxColour wxXmlResourceHandler::GetColour(const wxString& param)
+wxColour wxXmlResourceHandler::GetColour(const wxString& param, const wxColour& defaultv)
{
wxString v = GetParamValue(param);
+
+ if ( v.empty() )
+ return defaultv;
+
wxColour clr;
// wxString -> wxColour conversion