From f1a777fee464b0e160cb6ecccdc01d425118e36e Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 17 Jan 2006 09:38:32 +0000 Subject: [PATCH] Applied patch [ 1340814 ] fix for wxTextCtrl::GetStyle Aron Pongo git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36917 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/textctrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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