src/toolsets/basictoolset.cpp

changeset 1269
ec691d9472b3
parent 1263
0256edecda54
child 1288
d1e45f90654b
equal deleted inserted replaced
1268:7cbdaefda950 1269:ec691d9472b3
107 reference->inlineContents(m_documents, inlined, deep, false); 107 reference->inlineContents(m_documents, inlined, deep, false);
108 108
109 // Merge in the inlined objects 109 // Merge in the inlined objects
110 for (LDObject* inlinedObject : inlined.objects()) 110 for (LDObject* inlinedObject : inlined.objects())
111 { 111 {
112 currentDocument()->insertObject(row, inlinedObject); 112 currentDocument()->insertCopy(row, inlinedObject);
113 mainWindow()->select(currentDocument()->index(row)); 113 mainWindow()->select(currentDocument()->index(row));
114 row += 1; 114 row += 1;
115 } 115 }
116 116
117 // Delete the subfile now as it's been inlined. 117 // Delete the subfile now as it's been inlined.

mercurial