Xcos: link Port as well as Link 32/17532/1
Paul Bignier [Wed, 2 Dec 2015 16:33:52 +0000 (17:33 +0100)]
 * tree_show(scs_m) showed only zeroes in Block.graphics.pin, pout, pein & peout

Change-Id: Ic543adfc8906efb7db44e2358031e7ec439a1dda

scilab/modules/xcos/src/java/org/scilab/modules/xcos/graph/model/XcosCell.java

index 39cd52d..179ba37 100644 (file)
@@ -291,6 +291,9 @@ public class XcosCell extends ScilabGraphUniqueObject {
                 } else {
                     controller.setObjectProperty(getUID(), getKind(), ObjectProperties.DESTINATION_PORT, uid);
                 }
+                if (uid != 0l) {
+                    controller.setObjectProperty(uid, Kind.PORT, ObjectProperties.CONNECTED_SIGNALS, getUID());
+                }
                 break;
             default:
                 break;