X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e669d18427a531bfa4d5ffd2603bad98a51b525c..8681f66ced063e1c3983eca15c1c6215f80d84df:/src/msw/textctrl.cpp diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index 76ab5d0d40..d577edd1a2 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -567,7 +567,7 @@ wxString wxTextCtrl::GetRange(long from, long to) const // this is easy in this case as EOL characters in richedit // version > 1 are just '\r's and so positions map to // string indices one to one (unlike with richedit 1) - str = str.Mid(from, to - from + 1); + str = str.Mid(from, to - from); } }