Caret position corrected to end of selection
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64434 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user