Xcos save: store control-points on the link geometry 33/17733/3
Clément DAVID [Wed, 27 Jan 2016 16:14:16 +0000 (17:14 +0100)]
Change-Id: Icc0ec4c7405b0c0b10a50f1b26c792f90daf156e

scilab/modules/xcos/src/java/org/scilab/modules/xcos/io/writer/JGraphXWriter.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/io/writer/LinkWriter.java

index d7c2f03..bbb1847 100644 (file)
@@ -56,6 +56,7 @@ public class JGraphXWriter extends ScilabWriter {
                     shared.stream.writeAttribute("as", "sourcePoint");
                     shared.stream.writeAttribute("x", Double.toString(vDouble.get(2 * i)));
                     shared.stream.writeAttribute("y", Double.toString(vDouble.get(2 * i + 1)));
+                    i++;
                 }
 
                 shared.stream.writeStartElement("Array");
index 6013afc..9a3a014 100644 (file)
@@ -92,6 +92,8 @@ public class LinkWriter extends ScilabWriter {
             String escaped = value[0].replace('\n', ' ');
             shared.stream.writeAttribute("value", escaped);
 
+            new JGraphXWriter(shared).write(uid, kind);
+
             shared.stream.writeEndElement(); // localName
         }
     }