src/toolsets/extprogramtoolset.cpp

changeset 1391
5fa4bf1fc781
parent 1326
69a90bd2dba2
child 1397
5d5c11af0268
--- a/src/toolsets/extprogramtoolset.cpp	Wed May 30 22:31:06 2018 +0300
+++ b/src/toolsets/extprogramtoolset.cpp	Mon Jun 04 23:12:40 2018 +0300
@@ -152,11 +152,10 @@
 {
 	for (LDObject* obj : objects)
 	{
-		if (obj->type() == LDObjectType::SubfileReference)
+		if (obj->isRasterizable())
 		{
-			LDSubfileReference* ref = static_cast<LDSubfileReference*> (obj);
 			Model model {m_documents};
-			ref->inlineContents(m_documents, CounterClockwise, model, true, false);
+			obj->rasterize(m_documents, CounterClockwise, model, true, false);
 			writeObjects(model.objects(), f);
 		}
 		else if (obj->type() == LDObjectType::BezierCurve)

mercurial