Merge branch 'development' of https://gitlab.lrz.de/lrr-tum/students/eragp-misim...
[Mograsim.git] / net.mograsim.logic.ui / src / net / mograsim / logic / ui / model / components / SimpleRectangularSubmodelComponent.java
index 04a6fcc..2fd94c6 100644 (file)
@@ -129,8 +129,8 @@ public class SimpleRectangularSubmodelComponent extends SubmodelComponent
                ret.type = SimpleRectangularSubmodelComponent.class.getSimpleName();
                Map<String, Object> m = new TreeMap<>();
                m.put(kLabel, label);
-               m.put(kInCount, inputPinNames.size());
-               m.put(kOutCount, outputPinNames.size());
+               m.put(kInCount, inputPinNames.toArray());
+               m.put(kOutCount, outputPinNames.toArray());
                m.put(kLogicWidth, logicWidth);
                ret.specialized = m;
                return ret;