Fix memleaks and slightly improve perfs
[scilab.git] / scilab / modules / graphic_objects / src / java / org / scilab / modules / graphic_objects / graphicView / ScilabView.java
index 946ef95..38fe14c 100644 (file)
@@ -12,6 +12,7 @@
 package org.scilab.modules.graphic_objects.graphicView;
 
 import org.scilab.modules.graphic_objects.ScilabNativeView;
+import org.scilab.modules.graphic_objects.graphicObject.GraphicObjectProperties;
 
 public class ScilabView extends ScilabNativeView implements GraphicView {
 
@@ -36,7 +37,8 @@ public class ScilabView extends ScilabNativeView implements GraphicView {
     }
 
     public void updateObject(String id, int property) {
-        ScilabNativeView__updateObject(id, property);
+        if (property == GraphicObjectProperties.__GO_ID__) {
+            ScilabNativeView__updateObject(id, property);
+        }
     }
-
 }