src/toolsets/extprogramtoolset.cpp

changeset 1269
ec691d9472b3
parent 1262
f6b253c17643
child 1288
d1e45f90654b
--- 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();

mercurial