607 |
607 |
608 // Add a reference to the new subfile to where the selection was |
608 // Add a reference to the new subfile to where the selection was |
609 LDSubfileReference* ref = LDSpawn<LDSubfileReference>(); |
609 LDSubfileReference* ref = LDSpawn<LDSubfileReference>(); |
610 ref->setColor(MainColor); |
610 ref->setColor(MainColor); |
611 ref->setFileInfo(doc); |
611 ref->setFileInfo(doc); |
612 ref->setPosition(Origin); |
612 ref->setPosition(Vertex {}); |
613 ref->setTransform(IdentityMatrix); |
613 ref->setTransform(IdentityMatrix); |
614 currentDocument()->insertObj(refidx, ref); |
614 currentDocument()->insertObj(refidx, ref); |
615 |
615 |
616 // Refresh stuff |
616 // Refresh stuff |
617 m_window->updateDocumentList(); |
617 m_window->updateDocumentList(); |