summaryrefslogtreecommitdiffstats
path: root/scilab/modules/graphics/macros/getcolor.sci
diff options
context:
space:
mode:
Diffstat (limited to 'scilab/modules/graphics/macros/getcolor.sci')
-rw-r--r--scilab/modules/graphics/macros/getcolor.sci7
1 files changed, 6 insertions, 1 deletions
diff --git a/scilab/modules/graphics/macros/getcolor.sci b/scilab/modules/graphics/macros/getcolor.sci
index a2f69d4..ccaea69 100644
--- a/scilab/modules/graphics/macros/getcolor.sci
+++ b/scilab/modules/graphics/macros/getcolor.sci
@@ -51,7 +51,12 @@ function [c] = getcolor(Title,cini)
51 end; 51 end;
52 52
53 // create the window for getcolor 53 // create the window for getcolor
54 win = max(winsid()) + 1; 54
55 win = max(winsid());
56 if isempty(win) then
57 win = 1;
58 end
59
55 scf(win); 60 scf(win);
56 61
57 sdf; 62 sdf;