X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d84afea9d1ec41ee4e2ebb3bf6b87926cf5f04d1..cf5e94bc6d1973e52d092b73be7ac247d36c2848:/src/gtk/pen.cpp diff --git a/src/gtk/pen.cpp b/src/gtk/pen.cpp index 11f787bd32..176463b69d 100644 --- a/src/gtk/pen.cpp +++ b/src/gtk/pen.cpp @@ -13,6 +13,7 @@ #endif #include "wx/pen.h" +#include "wx/colour.h" #include @@ -51,6 +52,11 @@ public: bool operator == (const wxPenRefData& data) const { + // It is impossible to tell if the dashes have changed + // so the only thing to do is assume they have + if (m_countDashes != 0 || data.m_countDashes != 0) + return false; + return (m_style == data.m_style && m_width == data.m_width && m_joinStyle == data.m_joinStyle &&