185 obj->setColor (parentcolor); |
185 obj->setColor (parentcolor); |
186 } |
186 } |
187 |
187 |
188 // ============================================================================= |
188 // ============================================================================= |
189 // ----------------------------------------------------------------------------- |
189 // ----------------------------------------------------------------------------- |
190 void LDSubfileReference::inlineContents(Model& model, bool deep, bool render) |
190 void LDSubfileReference::inlineContents(DocumentManager* context, Model& model, bool deep, bool render) |
191 { |
191 { |
192 Model inlined {this->model()->documentManager()}; |
192 Model inlined {context}; |
193 fileInfo()->inlineContents(inlined, deep, render); |
193 fileInfo()->inlineContents(inlined, deep, render); |
194 |
194 |
195 // Transform the objects |
195 // Transform the objects |
196 for (LDObject* object : inlined) |
196 for (LDObject* object : inlined) |
197 TransformObject(object, transformationMatrix(), position(), color()); |
197 TransformObject(object, transformationMatrix(), position(), color()); |