--- 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();