639:851634b85893 | 640:d4dda62c6600 |
---|---|
176 LDObjectList objs = ref->inlineContents (LDSubfile::DeepInline); | 176 LDObjectList objs = ref->inlineContents (LDSubfile::DeepInline); |
177 | 177 |
178 writeObjects (objs, f); | 178 writeObjects (objs, f); |
179 | 179 |
180 for (LDObject* obj : objs) | 180 for (LDObject* obj : objs) |
181 obj->deleteSelf(); | 181 obj->destroy(); |
182 } | 182 } |
183 else | 183 else |
184 f.write ((obj->asText() + "\r\n").toUtf8()); | 184 f.write ((obj->asText() + "\r\n").toUtf8()); |
185 } | 185 } |
186 } | 186 } |
317 | 317 |
318 for (LDObject* obj : objs) | 318 for (LDObject* obj : objs) |
319 { | 319 { |
320 if (!obj->isScemantic()) | 320 if (!obj->isScemantic()) |
321 { | 321 { |
322 obj->deleteSelf(); | 322 obj->destroy(); |
323 continue; | 323 continue; |
324 } | 324 } |
325 | 325 |
326 getCurrentDocument()->addObject (obj); | 326 getCurrentDocument()->addObject (obj); |
327 obj->select(); | 327 obj->select(); |