hidden menus handles of a figure are no longer reachable after the first plotting (regression)
Reported by Samuel GOUGEON (@sgougeon)
BUG DESCRIPTION:
----------------
hidden menus handles of a figure are no longer reachable after the first plotting:
set(get(0),"showhiddenhandles","on");
f= scf();
f.children
plot()
f.children
f(4)
Result with Scilab 5.5.2: OK
-------------------------
-->set(get(0),"showhiddenhandles","on");
-->f= scf();
-->f.children
ans =
5 by 1 matrix of handles:
=========================
Axes
uimenu
uimenu
uimenu
uimenu
-->plot()
-->f.children
ans =
7 by 1 matrix of handles:
=========================
Axes
Axes
Axes
uimenu
uimenu
uimenu
uimenu
-->get(get(0),"showhiddenhandles")
ans =
on
Result with In Scilab 6.0.2: KO
---------------------------
--> set(get(0),"showhiddenhandles","on");
--> f= scf();
--> f.children
ans =
5 by 1 matrix of handles:
=========================
Axes
uimenu
uimenu
uimenu <<<< OK
uimenu
--> plot()
--> f.children
ans =
3 by 1 matrix of handles:
=========================
Axes
Axes
Axes
<<<<<<<<<<<<< KO : menus are no longer reachable
--> get(get(0),"showhiddenhandles") // yet ...
ans =
on // is still OK
--> f.children(4)
Invalid index. <<<<<<<<<
ERROR LOG:
----------
None. Wrong behavior
HOW TO REPRODUCE THE BUG:
-------------------------
set(get(0),"showhiddenhandles","on");
f= scf();
f.children
plot()
f.children
f(4)