X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/184144794d383a1ddd6167443f6c22a3281aa96c..51dc95a4c8ccb00741be48f6353749ada3e9f39a:/src/msw/textctrl.cpp?ds=inline diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index 7d13ae10f4..a6686ae562 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -648,7 +648,7 @@ void wxTextCtrl::GetSelection(long* from, long* to) const } } -wxString wxTextCtrl::GetSelection() const +wxString wxTextCtrl::GetStringSelection() const { // the base class version works correctly for the rich text controls // because there the lines are terminated with just '\r' which means that @@ -657,7 +657,7 @@ wxString wxTextCtrl::GetSelection() const // we break the indices #if wxUSE_RICHEDIT if ( m_isRich ) - return wxTextCtrlBase::GetSelection(); + return wxTextCtrlBase::GetStringSelection(); #endif // wxUSE_RICHEDIT long from, to;