src/ldObject.cpp

changeset 966
a834e43a57da
parent 963
c1526d1877d7
child 968
4b93b7963456
equal deleted inserted replaced
965:d1b0aa40db91 966:a834e43a57da
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);
508 continue; 508 continue;
509 509
510 if (not text.isEmpty()) 510 if (not text.isEmpty())
511 text += ", "; 511 text += ", ";
512 512
513 QString noun = format ("%1%2", typeName (objType), Plural (count)); 513 QString noun = format ("%1%2", typeName (objType), plural (count));
514 text += format ("%1 %2", count, noun); 514 text += format ("%1 %2", count, noun);
515 } 515 }
516 516
517 return text; 517 return text;
518 } 518 }

mercurial