X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0bca03736369e836cce9297509505c5972e775dd..c57fe715b2e4063deb38afb4a4551dab68732f5f:/src/x11/brush.cpp?ds=sidebyside

diff --git a/src/x11/brush.cpp b/src/x11/brush.cpp
index 12822c183d..3eeb858046 100644
--- a/src/x11/brush.cpp
+++ b/src/x11/brush.cpp
@@ -17,10 +17,9 @@
 #ifndef WX_PRECOMP
     #include "wx/utils.h"
     #include "wx/bitmap.h"
+    #include "wx/colour.h"
 #endif
 
-#include "wx/colour.h"
-
 //-----------------------------------------------------------------------------
 // wxBrush
 //-----------------------------------------------------------------------------
@@ -43,7 +42,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);
     }