diff --git a/include/wx/osx/pen.h b/include/wx/osx/pen.h index 686673abe6..243714ac7e 100644 --- a/include/wx/osx/pen.h +++ b/include/wx/osx/pen.h @@ -49,6 +49,7 @@ public: wxPenJoin GetJoin() const; wxPenCap GetCap() const; int GetDashes(wxDash **ptr) const; + int GetDashCount() const; wxBitmap *GetStipple() const ; diff --git a/src/osx/pen.cpp b/src/osx/pen.cpp index 55f5f0c4cf..a40bdfcf9f 100644 --- a/src/osx/pen.cpp +++ b/src/osx/pen.cpp @@ -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") );