Do not create a figure if not needed. 18/14218/1
Vincent COUVERT [Fri, 28 Mar 2014 15:37:37 +0000 (16:37 +0100)]
Change-Id: I8f3a4aeb77987fbcaef6562226cfd1982c946ad9
Fixes: test_run graphics bug_3975

scilab/modules/io/macros/%_sodload.sci

index 8541a12..5b9f5f3 100644 (file)
@@ -176,7 +176,7 @@ function %_sodload(%__filename__, varargin)
                 fields(fields=="default_axes") = [];
                 fields(fields=="visible") = [];
             else
-                h = scf();
+                h = gcf();
                 h.visible = "off";
             end
         else