X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c89f5c02b1ecc6098b21b39b01509dd387c1cb34..a9103a81bed5f9beefa771fd29f9b603cd8fe4ba:/src/gtk1/pen.cpp diff --git a/src/gtk1/pen.cpp b/src/gtk1/pen.cpp index 7ba9b5940d..176463b69d 100644 --- a/src/gtk1/pen.cpp +++ b/src/gtk1/pen.cpp @@ -13,6 +13,7 @@ #endif #include "wx/pen.h" +#include "wx/colour.h" #include @@ -34,6 +35,7 @@ public: } wxPenRefData( const wxPenRefData& data ) + : wxObjectRefData() { m_style = data.m_style; m_width = data.m_width; @@ -50,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 &&