]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/textctrl.cpp
Applied patch [ 1355809 ] Add ability to use templates with static event tables
[wxWidgets.git] / src / msw / textctrl.cpp
index 3beeae72069a1306a007bf68fb25560620c7800b..a69a4543635f40c30ca0c7a716065296f54ed84e 100644 (file)
@@ -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