diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index 3beeae7206..a69a454363 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -2524,7 +2524,7 @@ bool wxTextCtrl::GetStyle(long position, wxTextAttr& style) if ( changeSel ) { - DoSetSelection(position, position, false /* don't scroll caret into view */); + DoSetSelection(position, position+1, false /* don't scroll caret into view */); } // get the selection formatting