<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#330000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 26/07/2013 22:42, Serge Steer wrote:<br>
</div>
<blockquote cite="mid:51F2DF33.9030602@inria.fr" type="cite">Le
26/07/2013 21:55, Stefan Du Rietz a écrit :
<br>
<blockquote type="cite">Hi,
<br>
if there is no figure, gcf() should return an empty handle,
shouldn't it? Now you get a handle to a new default figure,
which is opened. That is the expected (and actual) response from
scf().
<br>
<br>
Is this a bug in gcf()?
<br>
<br>
</blockquote>
It should be a logical choice, but changing the gcf and
get("current_figure") behavior will breaks compatibility.
<br>
A solution for testing if there is no figure is to check
winsid()==[]
<br>
<br>
Serge<br>
</blockquote>
I thought that ==[] should be discouraged. <br>
Then isempty(winsid()) would be a better solution<br>
<br>
Adrien<br>
</body>
</html>