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:
Jean-Marc Lasgouttes 2008-08-13 15:13:37 +00:00
parent 3d9f151e00
commit 3589a75a11

View File

@ -1998,7 +1998,6 @@ bool Cursor::fixIfBroken()
{
if (DocIterator::fixIfBroken()) {
clearSelection();
resetAnchor();
return true;
}
return false;
@ -2090,8 +2089,7 @@ bool Cursor::textUndo()
return false;
// Set cursor
setCursor(dit);
selection() = false;
resetAnchor();
clearSelection();
fixIfBroken();
return true;
}
@ -2105,8 +2103,7 @@ bool Cursor::textRedo()
return false;
// Set cursor
setCursor(dit);
selection() = false;
resetAnchor();
clearSelection();
fixIfBroken();
return true;
}