+bool wxPen::operator==(const wxPen& pen) const
+{
+ const wxPenRefData *
+ penData = static_cast<const wxPenRefData *>(pen.m_refData);
+
+ // an invalid pen is only equal to another invalid pen
+ return m_refData ? penData && *M_PENDATA == *penData : !penData;
+}
+