mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-28 06:49:43 +00:00
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:
parent
c8be555d58
commit
f04eabb1cd
@ -765,7 +765,7 @@ bool LCursor::backspace()
|
||||
autocorrect() = false;
|
||||
|
||||
if (selection()) {
|
||||
cap::selDel(*this);
|
||||
cap::eraseSelection(*this);
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -817,7 +817,7 @@ bool LCursor::erase()
|
||||
return true;
|
||||
|
||||
if (selection()) {
|
||||
cap::selDel(*this);
|
||||
cap::eraseSelection(*this);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user