468 objsToCompile << file->getObject (target); |
468 objsToCompile << file->getObject (target); |
469 |
469 |
470 obj->swap (file->getObject (target)); |
470 obj->swap (file->getObject (target)); |
471 } |
471 } |
472 |
472 |
473 RemoveDuplicates (objsToCompile); |
473 removeDuplicates (objsToCompile); |
474 |
474 |
475 // The objects need to be recompiled, otherwise their pick lists are left with |
475 // The objects need to be recompiled, otherwise their pick lists are left with |
476 // the wrong index colors which messes up selection. |
476 // the wrong index colors which messes up selection. |
477 for (LDObject* obj : objsToCompile) |
477 for (LDObject* obj : objsToCompile) |
478 g_win->R()->compileObject (obj); |
478 g_win->R()->compileObject (obj); |