--- 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)