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. |