src/MainWindow.cc

changeset 640
d4dda62c6600
parent 639
851634b85893
child 642
751a8df42842
--- a/src/MainWindow.cc	Wed Mar 05 02:33:58 2014 +0200
+++ b/src/MainWindow.cc	Wed Mar 05 03:39:31 2014 +0200
@@ -303,7 +303,7 @@
 
 	// Delete the objects that were being selected
 	for (LDObject* obj : selCopy)
-		obj->deleteSelf();
+		obj->destroy();
 
 	refresh();
 	return selCopy.size();
@@ -700,7 +700,7 @@
 void MainWindow::deleteObjects (LDObjectList objs)
 {
 	for (LDObject* obj : objs)
-		obj->deleteSelf();
+		obj->destroy();
 }
 
 // =============================================================================

mercurial