* 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:
Martin Vermeer 2006-05-25 11:47:33 +00:00
parent 07db8e3139
commit 6f5a5fe88b

View File

@ -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;