mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-30 13:20:58 +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;
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user