--- a/src/toolsets/extprogramtoolset.cpp Sat Mar 03 17:59:56 2018 +0200 +++ b/src/toolsets/extprogramtoolset.cpp Mon Mar 05 22:40:34 2018 +0200 @@ -327,7 +327,7 @@ for (LDObject* object : model.objects()) { if (object->isScemantic()) - currentDocument()->addObject(object); + currentDocument()->insertCopy(currentDocument()->size(), object); } m_window->doFullRefresh();