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<?>> componentSlot = instantiationManager.getComponentSlot();
List<IDIYComponent<?>> newSelection = new ArrayList<IDIYComponent<?>>(); List<IDIYComponent<?>> newSelection = new ArrayList<IDIYComponent<?>>();
for (IDIYComponent<?> component : componentSlot) { for (IDIYComponent<?> component : componentSlot) {
addComponent(component, true); currentProject.getComponents().add(component);
newSelection.add(component); newSelection.add(component);
} }
// group components if there's more than one, e.g. building blocks, but not clipboard contents // group components if there's more than one, e.g. building blocks, but not clipboard contents
+5 -1
View File
@@ -2637,7 +2637,11 @@
<org.diylc.appframework.update.Change> <org.diylc.appframework.update.Change>
<changeType>IMPROVEMENT</changeType> <changeType>IMPROVEMENT</changeType>
<description>Honor "Terminal Strip" connectivity when creating a netlist</description> <description>Honor "Terminal Strip" connectivity when creating a netlist</description>
</org.diylc.appframework.update.Change> </org.diylc.appframework.update.Change>
<org.diylc.appframework.update.Change>
<changeType>BUG_FIX</changeType>
<description>Z-order of components sometimes gets wrong when importing a DIY file into another file</description>
</org.diylc.appframework.update.Change>
</changes> </changes>
<url>https://github.com/bancika/diy-layout-creator/releases</url> <url>https://github.com/bancika/diy-layout-creator/releases</url>
</org.diylc.appframework.update.Version> </org.diylc.appframework.update.Version>