]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/brush.cpp
Context menu event from keyboard records the mouse position, not -1, -1,
[wxWidgets.git] / src / gtk / brush.cpp
index 3d4549539f78738f0d508de042b949add2b8e8c8..4c54c10897509213764cbf43167b00c63eb20ff8 100644 (file)
 #include "wx/wxprec.h"
 
 #include "wx/brush.h"
-#include "wx/colour.h"
 
-#include <gdk/gdk.h>
+#ifndef WX_PRECOMP
+    #include "wx/bitmap.h"
+    #include "wx/colour.h"
+#endif
 
 //-----------------------------------------------------------------------------
 // wxBrush
@@ -38,7 +40,7 @@ public:
     bool operator == (const wxBrushRefData& data) const
     {
         return (m_style == data.m_style &&
-                m_stipple == data.m_stipple &&
+                m_stipple.IsSameAs(data.m_stipple) &&
                 m_colour == data.m_colour);
     }