src/ldObject.cpp

changeset 978
4603d8fd063e
parent 971
c00f9665a9f8
child 979
880d3fe9ac7c
equal deleted inserted replaced
977:dc3ceb65cda7 978:4603d8fd063e
291 291
292 // ============================================================================= 292 // =============================================================================
293 // 293 //
294 void LDObject::destroy() 294 void LDObject::destroy()
295 { 295 {
296 print ("Destroying %1\n", this);
297
296 // Don't bother during program termination (FIXME) 298 // Don't bother during program termination (FIXME)
297 if (IsExiting() == false) 299 if (IsExiting() == false)
298 { 300 {
299 deselect(); 301 deselect();
300 302
785 787
786 if (before != after) 788 if (before != after)
787 { 789 {
788 obj->document()->addToHistory (new EditHistory (idx, before, after)); 790 obj->document()->addToHistory (new EditHistory (idx, before, after));
789 g_win->R()->compileObject (obj); 791 g_win->R()->compileObject (obj);
790 CurrentDocument()->redoVertices(); 792 g_win->currentDocument()->redoVertices();
791 } 793 }
792 } 794 }
793 else 795 else
794 { 796 {
795 *ptr = val; 797 *ptr = val;

mercurial