From a216dfa2c17368e1c42402c0e8ce5fe1d76926a9 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Sun, 30 May 2010 14:00:35 +0000 Subject: [PATCH] Caret position corrected to end of selection git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64434 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/richtext/richtextctrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/richtext/richtextctrl.cpp b/src/richtext/richtextctrl.cpp index be2bc269ee..18d061a4c5 100644 --- a/src/richtext/richtextctrl.cpp +++ b/src/richtext/richtextctrl.cpp @@ -2600,7 +2600,7 @@ void wxRichTextCtrl::SetSelection(long from, long to) m_selectionAnchor = from-1; m_selectionRange.SetRange(from, to-1); - m_caretPosition = wxMax(-1, to-2); + m_caretPosition = wxMax(-1, to-1); RefreshForSelectionChange(oldSelection, m_selectionRange); PositionCaret(); -- 2.45.2