mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-18 21:45:24 +00:00
* paragraph_pimpl.C
(Paragraph::Pimpl::erase): Replace fix r13885 by better fix git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13928 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
07db8e3139
commit
6f5a5fe88b
@ -379,10 +379,10 @@ bool Paragraph::Pimpl::erase(pos_type pos)
|
||||
|
||||
if (tracking()) {
|
||||
Change::Type changetype(changes_->lookup(pos));
|
||||
|
||||
if (pos < size())
|
||||
changes_->record(Change(Change::DELETED), pos);
|
||||
// only allow the actual removal if it was /new/ text
|
||||
if (changetype != Change::INSERTED) {
|
||||
changes_->record(Change(Change::DELETED), pos);
|
||||
if (pos < size() && owner_->isInset(pos))
|
||||
owner_->getInset(pos)->markErased(true);
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user