Xcos: fix blocks auto-resize 91/18091/2
Clément DAVID [Tue, 19 Apr 2016 07:45:44 +0000 (09:45 +0200)]
Change-Id: I073dbfe5fa026b490664e99927042b6ee24fb1b3

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

index c3dede6..7598233 100644 (file)
@@ -413,10 +413,10 @@ public final class XcosCellFactory {
                                 properties.get(ObjectProperties.EVENT_OUTPUTS);
             convertGeometry = (2 * w + 2 * h) < (numberOfPorts * BasicPort.DEFAULT_PORTSIZE);
         } else {
-            convertGeometry = w < (properties.get(ObjectProperties.INPUTS) * BasicPort.DEFAULT_PORTSIZE) |
-                              w < (properties.get(ObjectProperties.OUTPUTS) * BasicPort.DEFAULT_PORTSIZE) |
-                              h < (properties.get(ObjectProperties.EVENT_INPUTS) * BasicPort.DEFAULT_PORTSIZE) |
-                              h < (properties.get(ObjectProperties.EVENT_OUTPUTS) * BasicPort.DEFAULT_PORTSIZE);
+            convertGeometry = h < (properties.get(ObjectProperties.INPUTS) * BasicPort.DEFAULT_PORTSIZE) |
+                              h < (properties.get(ObjectProperties.OUTPUTS) * BasicPort.DEFAULT_PORTSIZE) |
+                              w < (properties.get(ObjectProperties.EVENT_INPUTS) * BasicPort.DEFAULT_PORTSIZE) |
+                              w < (properties.get(ObjectProperties.EVENT_OUTPUTS) * BasicPort.DEFAULT_PORTSIZE);
         }
 
         if (convertGeometry) {