diff --git a/src/univ/textctrl.cpp b/src/univ/textctrl.cpp index ae6e1d5d45..ff7515af56 100644 --- a/src/univ/textctrl.cpp +++ b/src/univ/textctrl.cpp @@ -3732,7 +3732,7 @@ void wxTextCtrl::RefreshTextRange(wxTextPos start, wxTextPos end) { // intermediate line or the last one but we need to refresh it // until the end anyhow - do it - posCount = wxSTRING_MAXLEN; + posCount = wxString::npos; } else // last line {