#pragma hdrstop
#endif
-#include "wx/dc.h"
-#include "wx/settings.h"
-#include "wx/ribbon/art.h"
-
#if wxUSE_RIBBON
+#include "wx/ribbon/art.h"
#include "wx/ribbon/art_internal.h"
#include "wx/ribbon/bar.h"
#include "wx/ribbon/buttonbar.h"
#include "wx/ribbon/toolbar.h"
#ifndef WX_PRECOMP
+#include "wx/dc.h"
+#include "wx/settings.h"
#endif
#ifdef __WXMSW__
#include "wx/msw/private.h"
#elif defined(__WXMAC__)
#include "wx/osx/private.h"
+// only for kThemeBrushToolbarBackground
+#include <Carbon/Carbon.h>
#endif
wxRibbonAUIArtProvider::wxRibbonAUIArtProvider()
if(client_offset)
*client_offset = wxPoint(3, label_height + 2);
}
+ if (size.x < 0) size.x = 0;
+ if (size.y < 0) size.y = 0;
return size;
}