Xcos gui: fix DEBUG_LEVEL setting 79/18979/2
Clément DAVID [Thu, 26 Jan 2017 17:06:16 +0000 (18:06 +0100)]
Change-Id: I9dce0888653082c2227920364241dac38ed543ea

scilab/modules/xcos/src/java/org/scilab/modules/xcos/graph/ScicosParameters.java

index 62208ef..94f2561 100644 (file)
@@ -217,7 +217,7 @@ public class ScicosParameters implements Serializable, Cloneable {
     public void setDebugLevel(final JavaController controller, int debugLevel) throws PropertyVetoException {
         int oldValue = getDebugLevel(controller);
         vcs.fireVetoableChange(DEBUG_LEVEL_CHANGE, oldValue, debugLevel);
-        controller.setObjectProperty(getUID(), getKind(), ObjectProperties.DIAGRAM_CONTEXT, debugLevel);
+        controller.setObjectProperty(getUID(), getKind(), ObjectProperties.DEBUG_LEVEL, debugLevel);
     }
 
     /*