diff --git a/include/wx/osx/textctrl.h b/include/wx/osx/textctrl.h index df6967f9ab..749220e843 100644 --- a/include/wx/osx/textctrl.h +++ b/include/wx/osx/textctrl.h @@ -63,7 +63,6 @@ public: // accessors // --------- - virtual wxString GetValue() const; virtual int GetLineLength(long lineNo) const; virtual wxString GetLineText(long lineNo) const; @@ -178,6 +177,7 @@ protected: virtual wxSize DoGetBestSize() const; virtual void DoSetValue(const wxString& value, int flags = 0); + virtual wxString DoGetValue() const; bool m_editable; diff --git a/src/osx/textctrl_osx.cpp b/src/osx/textctrl_osx.cpp index 9ace17a932..cc5ac72d18 100644 --- a/src/osx/textctrl_osx.cpp +++ b/src/osx/textctrl_osx.cpp @@ -157,7 +157,7 @@ void wxTextCtrl::MacCheckSpelling(bool check) GetTextPeer()->CheckSpelling(check); } -wxString wxTextCtrl::GetValue() const +wxString wxTextCtrl::DoGetValue() const { return GetTextPeer()->GetStringValue() ; }