Merge branch 'master' of git://git.scilab.org/scilab into palette-browser
[scilab.git] / scilab / modules / xcos / src / java / org / scilab / modules / xcos / graph / XcosDiagram.java
index a77fa24..2f68361 100644 (file)
@@ -1954,6 +1954,7 @@ public class XcosDiagram extends ScilabGraph {
         JavaController controller = new JavaController();
         String[] strValue = {""};
         VectorOfDouble vecValue = new VectorOfDouble();
+        VectorOfInt vecInteger = new VectorOfInt();
 
         StringBuilder result = new StringBuilder();
         result.append(ScilabGraphConstants.HTML_BEGIN);
@@ -1985,9 +1986,9 @@ public class XcosDiagram extends ScilabGraph {
         appendReduced(result, ScilabTypeCoder.toString(vecValue))
         .append(ScilabGraphConstants.HTML_END_CODE).append(ScilabGraphConstants.HTML_NEWLINE);
 
-        controller.getObjectProperty(o.getUID(), o.getKind(), ObjectProperties.IPAR, vecValue);
+        controller.getObjectProperty(o.getUID(), o.getKind(), ObjectProperties.IPAR, vecInteger);
         result.append(XcosMessages.TOOLTIP_BLOCK_IPAR).append(ScilabGraphConstants.HTML_BEGIN_CODE);
-        appendReduced(result, ScilabTypeCoder.toString(vecValue))
+        appendReduced(result, ScilabTypeCoder.toString(vecInteger))
         .append(ScilabGraphConstants.HTML_END_CODE).append(ScilabGraphConstants.HTML_NEWLINE);
 
         controller.getObjectProperty(o.getUID(), o.getKind(), ObjectProperties.OPAR, vecValue);