- 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;