src/toolsets/algorithmtoolset.cpp

changeset 1011
4fdd74a04790
parent 1005
a88cf5a32246
child 1012
413ecd6b9801
equal deleted inserted replaced
1010:969b48eddd6b 1011:4fdd74a04790
570 // main document. 570 // main document.
571 for (LDObject* obj : selectedObjects()) 571 for (LDObject* obj : selectedObjects())
572 obj->destroy(); 572 obj->destroy();
573 573
574 // Add a reference to the new subfile to where the selection was 574 // Add a reference to the new subfile to where the selection was
575 LDSubfile* ref = LDSpawn<LDSubfile>(); 575 LDSubfileReference* ref = LDSpawn<LDSubfileReference>();
576 ref->setColor (MainColor); 576 ref->setColor (MainColor);
577 ref->setFileInfo (doc); 577 ref->setFileInfo (doc);
578 ref->setPosition (Origin); 578 ref->setPosition (Origin);
579 ref->setTransform (IdentityMatrix); 579 ref->setTransform (IdentityMatrix);
580 currentDocument()->insertObj (refidx, ref); 580 currentDocument()->insertObj (refidx, ref);

mercurial