320 |
320 |
321 for (LDColor color : colorsToReplace) |
321 for (LDColor color : colorsToReplace) |
322 m_window->deleteByColor (color); |
322 m_window->deleteByColor (color); |
323 |
323 |
324 // Insert the new objects |
324 // Insert the new objects |
325 currentDocument()->clearSelection(); |
325 mainWindow()->clearSelection(); |
326 |
326 |
327 for (LDObject* object : model.objects()) |
327 for (LDObject* object : model.objects()) |
328 { |
328 { |
329 if (object->isScemantic()) |
329 if (object->isScemantic()) |
330 currentDocument()->addObject(object); |
330 currentDocument()->addObject(object); |