Z-order of components sometimes gets wrong when importing a DIY file

into another file
This commit is contained in:
Branislav Stojkovic
2019-03-13 21:24:55 +01:00
parent e9a2785344
commit 37d5ce18fc
2 changed files with 6 additions and 2 deletions
@@ -568,7 +568,7 @@ public class Presenter implements IPlugInPort {
List<IDIYComponent<?>> componentSlot = instantiationManager.getComponentSlot();
List<IDIYComponent<?>> newSelection = new ArrayList<IDIYComponent<?>>();
for (IDIYComponent<?> component : componentSlot) {
addComponent(component, true);
currentProject.getComponents().add(component);
newSelection.add(component);
}
// group components if there's more than one, e.g. building blocks, but not clipboard contents