]> git.saurik.com Git - wxWidgets.git/commitdiff
build fix (looking at buildbot)
authorFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Sun, 16 Mar 2008 22:42:38 +0000 (22:42 +0000)
committerFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Sun, 16 Mar 2008 22:42:38 +0000 (22:42 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52576 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/brush.h
include/wx/font.h
src/mac/carbon/brush.cpp

index 201e53e91a904abbd9111fa07959f62bbe2fd73d..d55ed5c3afe88a76c56e6fefafc818bc13406a6c 100644 (file)
@@ -15,6 +15,7 @@
 #include "wx/defs.h"
 #include "wx/object.h"
 #include "wx/gdiobj.h"
+#include "wx/gdicmn.h"      // for wxGDIObjListBase
 
 // NOTE: these values cannot be combined together!
 enum wxBrushStyle
index e79e04e91c8bebca9f474b9677ae61f010526f30..744e4fefeb5447d8a50bc3622021d258ce8eb36c 100644 (file)
@@ -19,6 +19,7 @@
 #include "wx/defs.h"        // for wxDEFAULT &c
 #include "wx/fontenc.h"     // the font encoding constants
 #include "wx/gdiobj.h"      // the base class
+#include "wx/gdicmn.h"      // for wxGDIObjListBase
 
 // ----------------------------------------------------------------------------
 // forward declarations
index 5de190f1a58deda7c282ff99c8de755e145e3151..14a75ca37e35fb44c3ed77fae7905f0e56a5c2bc 100644 (file)
@@ -42,7 +42,7 @@ public:
 protected:
     void DoSetStipple(const wxBitmap& stipple);
 
-    wxBitmap      m_stipple ;
+    wxBitmap      m_stipple;
     wxColour      m_colour;
     wxBrushStyle  m_style;
 };
@@ -140,7 +140,7 @@ const wxColour& wxBrush::GetColour() const
 
 wxBrushStyle wxBrush::GetStyle() const
 {
-    wxCHECK_MSG( Ok(), 0, _T("invalid brush") );
+    wxCHECK_MSG( Ok(), wxBRUSHSTYLE_MAX, _T("invalid brush") );
 
     return M_BRUSHDATA->GetStyle();
 }