src/actions/MainActions.cc

changeset 640
d4dda62c6600
parent 639
851634b85893
child 642
751a8df42842
equal deleted inserted replaced
639:851634b85893 640:d4dda62c6600
842 // Try save it 842 // Try save it
843 if (save (doc, true)) 843 if (save (doc, true))
844 { 844 {
845 // Remove the selection now 845 // Remove the selection now
846 for (LDObject* obj : selection()) 846 for (LDObject* obj : selection())
847 obj->deleteSelf(); 847 obj->destroy();
848 848
849 // Compile all objects in the new subfile 849 // Compile all objects in the new subfile
850 for (LDObject* obj : doc->getObjects()) 850 for (LDObject* obj : doc->getObjects())
851 R()->compileObject (obj); 851 R()->compileObject (obj);
852 852

mercurial