diff -r c72e3115a297 -r 67c6e5d32e68 src/ldObject.cpp --- a/src/ldObject.cpp Sun Jan 29 15:49:36 2017 +0200 +++ b/src/ldObject.cpp Sun Jan 29 21:02:11 2017 +0200 @@ -347,7 +347,7 @@ // ----------------------------------------------------------------------------- void LDSubfileReference::inlineContents(Model& model, bool deep, bool render) { - Model inlined; + Model inlined {this->model()->documentManager()}; fileInfo()->inlineContents(inlined, deep, render); // Transform the objects @@ -545,7 +545,7 @@ // Check whether subfile is flat int axisSet = (1 << X) | (1 << Y) | (1 << Z); - Model model; + Model model {this->model()->documentManager()}; fileInfo()->inlineContents(model, true, false); for (LDObject* obj : model.objects()) @@ -960,14 +960,6 @@ return result; } -// ============================================================================= -// -LDObject* LDObject::createCopy() const -{ - LDObject* copy = ParseLine (asText()); - return copy; -} - LDSubfileReference::LDSubfileReference(LDDocument* reference, const Matrix& transformationMatrix, const Vertex& position, Model* model) : LDMatrixObject {transformationMatrix, position, model},