- // 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 &&
- m_capStyle == data.m_capStyle &&
- m_colour == data.m_colour);
+ if ( m_countDashes != data.m_countDashes )
+ return FALSE;
+
+ if ( m_dash )
+ {
+ if ( !data.m_dash ||
+ memcmp(m_dash, data.m_dash, m_countDashes*sizeof(wxGTKDash)) )
+ {
+ return FALSE;
+ }
+ }
+ else if ( data.m_dash )
+ {
+ return FALSE;
+ }
+
+
+ return m_style == data.m_style &&
+ m_width == data.m_width &&
+ m_joinStyle == data.m_joinStyle &&
+ m_capStyle == data.m_capStyle &&
+ m_colour == data.m_colour;