src/toolsets/algorithmtoolset.cpp

changeset 1263
0256edecda54
parent 1259
0384b1d49786
child 1269
ec691d9472b3
--- a/src/toolsets/algorithmtoolset.cpp	Sat Mar 03 17:28:27 2018 +0200
+++ b/src/toolsets/algorithmtoolset.cpp	Sat Mar 03 17:47:40 2018 +0200
@@ -556,7 +556,7 @@
 			currentDocument()->remove(object);
 
 		// Add a reference to the new subfile to where the selection was
-		currentDocument()->emplaceAt<LDSubfileReference>(referencePosition, subfile, Matrix::identity, Vertex {0, 0, 0});
+		currentDocument()->emplaceAt<LDSubfileReference>(referencePosition, subfile->name(), Matrix::identity, Vertex {0, 0, 0});
 
 		// Refresh stuff
 		m_window->updateDocumentList();

mercurial