]> git.lyx.org Git - lyx.git/blobdiff - src/paragraph_pimpl.C
move definition of variables to the main cmake file
[lyx.git] / src / paragraph_pimpl.C
index 6e3c63cb5538af80d8be44c7e7ab40cbe96428db..8c0461b83059a6e275f2f2722462430856ee05b4 100644 (file)
@@ -371,10 +371,10 @@ bool Paragraph::Pimpl::erase(pos_type pos)
 
        if (tracking()) {
                Change::Type changetype(changes_->lookup(pos).type);
-               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;