A *.userdata=struct(...) direct assignment erases the parent handle. Work-aroun
@sgougeon)
Reported by Samuel GOUGEON (-- Bug description --
A *.userdata=struct(...) direct assignment erases the parent handle.
Work-around: set(handle,"userdata",structure) works well.
May be a parser issue instead of a Graphics-related one.
-- Scilab error message --
None. The variable containing the handle is destroyed instead of being updated.
-- How to reproduce the bug --
clf
plot2d()
a=gca();
s=struct("text","Hello","num",rand(2,2))
a.userdata=s
a=gca();
set(a,"userdata",s)