mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-12 03:23:12 +00:00
clearSelection invokes resetAnchor
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26145 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
3d9f151e00
commit
3589a75a11
@ -1998,7 +1998,6 @@ bool Cursor::fixIfBroken()
|
|||||||
{
|
{
|
||||||
if (DocIterator::fixIfBroken()) {
|
if (DocIterator::fixIfBroken()) {
|
||||||
clearSelection();
|
clearSelection();
|
||||||
resetAnchor();
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
@ -2090,8 +2089,7 @@ bool Cursor::textUndo()
|
|||||||
return false;
|
return false;
|
||||||
// Set cursor
|
// Set cursor
|
||||||
setCursor(dit);
|
setCursor(dit);
|
||||||
selection() = false;
|
clearSelection();
|
||||||
resetAnchor();
|
|
||||||
fixIfBroken();
|
fixIfBroken();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -2105,8 +2103,7 @@ bool Cursor::textRedo()
|
|||||||
return false;
|
return false;
|
||||||
// Set cursor
|
// Set cursor
|
||||||
setCursor(dit);
|
setCursor(dit);
|
||||||
selection() = false;
|
clearSelection();
|
||||||
resetAnchor();
|
|
||||||
fixIfBroken();
|
fixIfBroken();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user