--- 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