Fixed wxRichTextCtrl caret test case
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72072 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2208,7 +2208,7 @@ bool wxRichTextCtrl::MoveToParagraphStart(int flags)
|
||||
if (!extendSel)
|
||||
SelectNone();
|
||||
|
||||
SetCaretPosition(newPos);
|
||||
SetCaretPosition(newPos, true);
|
||||
PositionCaret();
|
||||
SetDefaultStyleToCursorStyle();
|
||||
|
||||
@@ -3174,6 +3174,7 @@ void wxRichTextCtrl::SetInsertionPoint(long pos)
|
||||
SelectNone();
|
||||
|
||||
m_caretPosition = pos - 1;
|
||||
m_caretAtLineStart = true;
|
||||
|
||||
PositionCaret();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user