Xcos: exclude the type field introduced by d74e94
[scilab.git] / scilab / modules / graph / src / java / org / scilab / modules / graph / io / ScilabObjectCodec.java
index 1837165..ba9cd22 100644 (file)
@@ -12,6 +12,8 @@
 
 package org.scilab.modules.graph.io;
 
+import java.util.ArrayList;
+import java.util.HashSet;
 import java.util.Map;
 
 import org.scilab.modules.types.ScilabBoolean;
@@ -78,7 +80,10 @@ public abstract class ScilabObjectCodec extends mxObjectCodec {
        public ScilabObjectCodec(Object template, String[] exclude,
                        String[] idrefs, Map<String, String> mapping) {
                super(template, exclude, idrefs, mapping);
-
+               
+               final HashSet<String> newExclude = new HashSet<String>(this.exclude);
+               newExclude.add("type");
+               this.exclude = newExclude;
        }
 
        /**