diff --git a/src/univ/textctrl.cpp b/src/univ/textctrl.cpp index 4fe9eb6932..cb70c7f837 100644 --- a/src/univ/textctrl.cpp +++ b/src/univ/textctrl.cpp @@ -941,8 +941,10 @@ void wxTextCtrl::Replace(wxTextPos from, wxTextPos to, const wxString& text) { wxTextCoord colStart, colEnd, lineStart, lineEnd; - // as convention, if `to` equal -1, it means go to the last position - if ( to == -1) + // as convention, ( src/gtk/textctrl.cpp:1411, src/msw/textctrl.cpp:759, + // test/controls/textentrytest.cpp:171 ) + // if `to` equal -1, it means go to the last position + if ( to == -1 ) to = GetLastPosition(); if ( (from > to) ||