--- a/src/extprogs.cpp Sat Jul 13 17:35:38 2013 +0300 +++ b/src/extprogs.cpp Sat Jul 13 19:02:48 2013 +0300 @@ -127,7 +127,7 @@ void writeObjects (vector<LDObject*>& objects, File& f) { for (LDObject* obj : objects) { if (obj->getType () == LDObject::Subfile) { - vector<LDObject*> objs = static_cast<LDSubfile*> (obj)->inlineContents (true, false); + vector<LDObject*> objs = static_cast<LDSubfileObject*> (obj)->inlineContents (true, false); writeObjects (objs, f); for (LDObject* obj : objs)