X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e181c7a2c32193fc8138cc32ed07984eadd4a21..74be3634b94f3febb0147cde99580e0344b8e74d:/src/osx/textctrl_osx.cpp diff --git a/src/osx/textctrl_osx.cpp b/src/osx/textctrl_osx.cpp index feda0352d3..9ace17a932 100644 --- a/src/osx/textctrl_osx.cpp +++ b/src/osx/textctrl_osx.cpp @@ -290,7 +290,7 @@ void wxTextCtrl::SetInsertionPoint(long pos) void wxTextCtrl::SetInsertionPointEnd() { - wxTextPos pos = GetLastPosition(); + long pos = GetLastPosition(); SetInsertionPoint( pos ); } @@ -767,7 +767,7 @@ void wxTextWidgetImpl::SetEditable(bool WXUNUSED(editable)) { } -wxTextPos wxTextWidgetImpl::GetLastPosition() const +long wxTextWidgetImpl::GetLastPosition() const { return GetStringValue().length() ; }