Xcos writer: fix an issue on List decoding 83/17483/1
Clément DAVID [Fri, 20 Nov 2015 08:31:22 +0000 (09:31 +0100)]
Change-Id: I094b0b836534aae380df58650fd4c0ffbae76936

scilab/modules/xcos/src/java/org/scilab/modules/xcos/io/ScilabTypeCoder.java

index 6fe1456..d310c35 100644 (file)
@@ -534,7 +534,10 @@ public class ScilabTypeCoder {
 
     private ScilabType decode(VectorOfDouble vec, ArrayList<ScilabType> var) {
         for (int i = 0; i < var.size(); i++) {
-            var.set(i, vec2var(vec));
+            ScilabType sub = decodeHeader(vec);
+            decode(vec, sub);
+
+            var.set(i, sub);
         }
         return (ScilabType) var;
     }