Don't test twice for selection()

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16505 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2007-01-04 15:21:58 +00:00
parent c8be555d58
commit f04eabb1cd

View File

@ -765,7 +765,7 @@ bool LCursor::backspace()
autocorrect() = false; autocorrect() = false;
if (selection()) { if (selection()) {
cap::selDel(*this); cap::eraseSelection(*this);
return true; return true;
} }
@ -817,7 +817,7 @@ bool LCursor::erase()
return true; return true;
if (selection()) { if (selection()) {
cap::selDel(*this); cap::eraseSelection(*this);
return true; return true;
} }