--- a/src/toolsets/basictoolset.cpp Sat Mar 03 17:28:27 2018 +0200 +++ b/src/toolsets/basictoolset.cpp Sat Mar 03 17:47:40 2018 +0200 @@ -237,7 +237,7 @@ int axisSet = (1 << X) | (1 << Y) | (1 << Z); Model model {currentDocument()->documentManager()}; LDSubfileReference* reference = static_cast<LDSubfileReference*>(obj); - reference->fileInfo()->inlineContents(model, true, false); + reference->fileInfo(m_documents)->inlineContents(model, true, false); for (LDObject* subobj : model.objects()) {