src/toolsets/extprogramtoolset.cpp

changeset 1009
85fd352bae45
parent 998
5be0ce31ce60
child 1011
4fdd74a04790
--- 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)

mercurial