From: Vincent COUVERT Date: Sun, 30 Mar 2014 14:10:54 +0000 (+0200) Subject: Manage xload X-Git-Tag: 5.5.0~152 X-Git-Url: http://gitweb.scilab.org/?p=scilab.git;a=commitdiff_plain;h=f49aa07df7fe4084c0f6a59adbf21021518969da Manage xload To test: test_run graphics bug_3975 // xload test_run graphics save_load // without xload Change-Id: I5353c72bde95058bb05e170254d8daddface39a1 --- diff --git a/scilab/modules/io/macros/%_sodload.sci b/scilab/modules/io/macros/%_sodload.sci index 5b9f5f3..ca5e546 100644 --- a/scilab/modules/io/macros/%_sodload.sci +++ b/scilab/modules/io/macros/%_sodload.sci @@ -176,7 +176,14 @@ function %_sodload(%__filename__, varargin) fields(fields=="default_axes") = []; fields(fields=="visible") = []; else - h = gcf(); + [lnums, fnames] = where(); + ind = grep(fnames, "xload"); + xload_mode = (ind ~= []); + if xload_mode then // See bug #3975 + h = gcf(); + else + h = scf(); + end h.visible = "off"; end else