src/ldObject.cpp

changeset 978
4603d8fd063e
parent 971
c00f9665a9f8
child 979
880d3fe9ac7c
--- a/src/ldObject.cpp	Mon Aug 31 23:36:08 2015 +0300
+++ b/src/ldObject.cpp	Sat Sep 05 23:03:24 2015 +0300
@@ -293,6 +293,8 @@
 //
 void LDObject::destroy()
 {
+	print ("Destroying %1\n", this);
+
 	// Don't bother during program termination (FIXME)
 	if (IsExiting() == false)
 	{
@@ -787,7 +789,7 @@
 		{
 			obj->document()->addToHistory (new EditHistory (idx, before, after));
 			g_win->R()->compileObject (obj);
-			CurrentDocument()->redoVertices();
+			g_win->currentDocument()->redoVertices();
 		}
 	}
 	else

mercurial