154 { |
154 { |
155 if (obj->type() == LDObjectType::SubfileReference) |
155 if (obj->type() == LDObjectType::SubfileReference) |
156 { |
156 { |
157 LDSubfileReference* ref = static_cast<LDSubfileReference*> (obj); |
157 LDSubfileReference* ref = static_cast<LDSubfileReference*> (obj); |
158 Model model {m_documents}; |
158 Model model {m_documents}; |
159 ref->inlineContents(model, true, false); |
159 ref->inlineContents(m_documents, model, true, false); |
160 writeObjects(model.objects(), f); |
160 writeObjects(model.objects(), f); |
161 } |
161 } |
162 else if (obj->type() == LDObjectType::BezierCurve) |
162 else if (obj->type() == LDObjectType::BezierCurve) |
163 { |
163 { |
164 LDBezierCurve* curve = static_cast<LDBezierCurve*> (obj); |
164 LDBezierCurve* curve = static_cast<LDBezierCurve*> (obj); |