]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/brush.cpp
Avoid clash with control container event handlers
[wxWidgets.git] / src / os2 / brush.cpp
index 1c9f7c84d551606694d78a241035c0321dee4c65..91b77c959e55679c07f6a1aaa37df0ab100633c9 100644 (file)
@@ -291,3 +291,16 @@ void wxBrush::SetPS(
     M_BRUSHDATA->m_hBrush = hPS;
     RealizeResource();
 } // end of WxWinGdi_CPen::SetPS
     M_BRUSHDATA->m_hBrush = hPS;
     RealizeResource();
 } // end of WxWinGdi_CPen::SetPS
+
+
+bool wxBrush::operator == (
+    const wxBrush& brush
+) const
+{
+    if (m_refData == brush.m_refData) return true;
+
+    if (!m_refData || !brush.m_refData) return false;
+
+    return ( *(wxBrushRefData*)m_refData == *(wxBrushRefData*)brush.m_refData );
+} // end of wxBrush::operator ==
+