--- a/src/basics.cpp Sun Oct 04 22:54:17 2015 +0300 +++ b/src/basics.cpp Sat Oct 24 13:19:27 2015 +0300 @@ -259,8 +259,8 @@ calcVertex (obj->vertex (i)); break; - case OBJ_Subfile: - for (LDObject* it : static_cast<LDSubfile*> (obj)->inlineContents (true, false)) + case OBJ_SubfileReference: + for (LDObject* it : static_cast<LDSubfileReference*> (obj)->inlineContents (true, false)) { calcObject (it); it->destroy();