--- a/src/toolsets/extprogramtoolset.cpp Sun Oct 04 16:45:30 2015 +0300 +++ b/src/toolsets/extprogramtoolset.cpp Sun Oct 04 16:55:26 2015 +0300 @@ -170,7 +170,15 @@ { LDSubfile* ref = static_cast<LDSubfile*> (obj); LDObjectList objs = ref->inlineContents (true, false); + writeObjects (objs, f); + for (LDObject* obj : objs) + obj->destroy(); + } + else if (obj->type() == OBJ_BezierCurve) + { + LDBezierCurve* curve = static_cast<LDBezierCurve*> (obj); + LDObjectList objs = curve->rasterize(); writeObjects (objs, f); for (LDObject* obj : objs)