283 if (obj->type() == LDObjectType::Error) |
282 if (obj->type() == LDObjectType::Error) |
284 replaceWithFromString(obj, static_cast<LDError*> (obj)->contents()); |
283 replaceWithFromString(obj, static_cast<LDError*> (obj)->contents()); |
285 } |
284 } |
286 |
285 |
287 m_needsRecache = true; |
286 m_needsRecache = true; |
288 |
|
289 if (this == m_window->currentDocument()) |
|
290 m_window->buildObjectList(); |
|
291 } |
287 } |
292 |
288 |
293 // ============================================================================= |
289 // ============================================================================= |
294 // |
290 // |
295 void LDDocument::insertObject (int pos, LDObject* obj) |
291 void LDDocument::insertObject (int pos, LDObject* obj) |