src/EditHistory.cc

changeset 640
d4dda62c6600
parent 638
382226e40865
child 642
751a8df42842
--- 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();
 }
 
 // =============================================================================

mercurial