Ui_data: replace clf with scf 44/14344/2
Paul Bignier [Fri, 4 Apr 2014 14:32:58 +0000 (16:32 +0200)]
Plotting a variable with the demo GUI open crashed that GUI.

Change-Id: I1a63cfff41ca35553f975d89a0f63e06f6af3e2c

scilab/modules/ui_data/src/java/org/scilab/modules/ui_data/variableeditor/actions/PlotAction.java

index 839c124..1f7342e 100644 (file)
@@ -214,11 +214,11 @@ public final class PlotAction extends CommonCallBack {
                 break;
         }
         if (editor instanceof SwingScilabVariableEditor) {
-            model.execCommand("clf();" + com);
+            model.execCommand("scf();" + com);
         } else {
             // Browse var case
             try {
-                asynchronousScilabExec(null, "clf();" + com);
+                asynchronousScilabExec(null, "scf();" + com);
             } catch (InterpreterException e1) {
                 System.err.println("An error in the interpreter has been catched: " + e1.getLocalizedMessage());
             }