--- a/src/glRenderer.cpp Sun Oct 04 22:54:17 2015 +0300 +++ b/src/glRenderer.cpp Sat Oct 24 13:19:27 2015 +0300 @@ -1591,7 +1591,7 @@ { PrimitiveTreeItem* item = static_cast<PrimitiveTreeItem*> (m_window->getPrimitivesTree()->currentItem()); QString primitiveName = item->primitive()->name; - LDSubfile* ref = LDSpawn<LDSubfile>(); + LDSubfileReference* ref = LDSpawn<LDSubfileReference>(); ref->setColor (MainColor); ref->setFileInfo (m_documents->getDocumentByName (primitiveName)); ref->setPosition (Origin);