-bool Paragraph::Pimpl::erasePos(pos_type pos)
-{
- lyx::Assert(pos < size());
-
- if (tracking()) {
- Change::Type changetype(changes_->lookup(pos));
- changes_->record(Change(Change::DELETED), pos);
-
- // only allow the actual removal if it was /new/ text
- if (changetype != Change::INSERTED) {
- if (text[pos] == Paragraph::META_INSET) {
- Inset * i(owner_->getInset(pos));
- i->markErased();
- }
- return false;
- }
- }
-
- eraseIntern(pos);
- return true;
-}
-
-