- && oldpar.lookupChange(old.pos() - 1) != Change::DELETED) {
- // We need to set the text to Change::INSERTED to
- // get it erased properly
- oldpar.setChange(old.pos() -1, Change::INSERTED);
- oldpar.erase(old.pos() - 1);
+ && !oldpar.isDeleted(old.pos() - 1)) {
+ oldpar.eraseChar(old.pos() - 1, false); // do not track changes in DEPM