Fix for caret positioning bug when selecting content
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72074 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1992,7 +1992,7 @@ bool wxRichTextCtrl::MoveRight(int noPositions, int flags)
|
|||||||
// we want to adjust the caret position such that it is positioned at the
|
// we want to adjust the caret position such that it is positioned at the
|
||||||
// start of the next line, rather than jumping past the first character of the
|
// start of the next line, rather than jumping past the first character of the
|
||||||
// line.
|
// line.
|
||||||
if (noPositions == 1 && !extendSel)
|
if (noPositions == 1)
|
||||||
MoveCaretForward(oldPos);
|
MoveCaretForward(oldPos);
|
||||||
else
|
else
|
||||||
SetCaretPosition(newPos);
|
SetCaretPosition(newPos);
|
||||||
@@ -2019,7 +2019,7 @@ bool wxRichTextCtrl::MoveLeft(int noPositions, int flags)
|
|||||||
if (!extendSel)
|
if (!extendSel)
|
||||||
SelectNone();
|
SelectNone();
|
||||||
|
|
||||||
if (noPositions == 1 && !extendSel)
|
if (noPositions == 1)
|
||||||
MoveCaretBack(oldPos);
|
MoveCaretBack(oldPos);
|
||||||
else
|
else
|
||||||
SetCaretPosition(newPos);
|
SetCaretPosition(newPos);
|
||||||
|
Reference in New Issue
Block a user