--- a/src/EditHistory.cc Wed Mar 05 02:33:58 2014 +0200 +++ b/src/EditHistory.cc Wed Mar 05 03:39:31 2014 +0200 @@ -131,7 +131,7 @@ void AddHistory::undo() const { LDObject* obj = getParent()->getDocument()->getObject (getIndex()); - obj->deleteSelf(); + obj->destroy(); } // ============================================================================= @@ -164,7 +164,7 @@ void DelHistory::redo() const { LDObject* obj = getParent()->getDocument()->getObject (getIndex()); - obj->deleteSelf(); + obj->destroy(); } // =============================================================================