112 int row = referenceIndex.row(); |
112 int row = referenceIndex.row(); |
113 |
113 |
114 if (referenceIndex.isValid()) |
114 if (referenceIndex.isValid()) |
115 { |
115 { |
116 Model inlined {m_documents}; |
116 Model inlined {m_documents}; |
117 reference->inlineContents(m_documents, inlined, deep, false); |
117 reference->inlineContents( |
|
118 m_documents, |
|
119 currentDocument()->header.winding, |
|
120 inlined, |
|
121 deep, |
|
122 false |
|
123 ); |
118 |
124 |
119 // Merge in the inlined objects |
125 // Merge in the inlined objects |
120 for (LDObject* inlinedObject : inlined.objects()) |
126 for (LDObject* inlinedObject : inlined.objects()) |
121 { |
127 { |
122 currentDocument()->insertCopy(row, inlinedObject); |
128 currentDocument()->insertCopy(row, inlinedObject); |