]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/pen.cpp
Added wxMSW wxChoice::GetClassDefaultAttributes(), initially used in wxComboCtrl
[wxWidgets.git] / src / osx / pen.cpp
index e902ada8c6661bc1d1aada7ef04788f3b291d9d2..a40bdfcf9f1467faf34015cb85b88d7d112332ac 100644 (file)
@@ -151,7 +151,7 @@ wxGDIRefData *wxPen::CreateGDIRefData() const
 
 wxGDIRefData *wxPen::CloneGDIRefData(const wxGDIRefData *data) const
 {
-    return new wxPenRefData(*wx_static_cast(const wxPenRefData *, data));
+    return new wxPenRefData(*static_cast<const wxPenRefData *>(data));
 }
 
 bool wxPen::operator==(const wxPen& pen) const
@@ -205,6 +205,11 @@ int wxPen::GetDashes(wxDash **ptr) const
     return M_PENDATA->m_nbDash;
 }
 
+int wxPen::GetDashCount() const
+{
+    return M_PENDATA->m_nbDash;
+}
+
 wxBitmap *wxPen::GetStipple() const
 {
     wxCHECK_MSG( Ok(), NULL, wxT("invalid pen") );