The label of a datatip customized with polyline.display_function and created in a batch session opened with the -quit option is not rendered
@sgougeon)
Reported by Samuel GOUGEON (BUG DESCRIPTION:
----------------
Overbug making
--> test_run cacsd bug_13359 show_error
failing.
Related thread: https://www.mail-archive.com/users@lists.scilab.org/msg07989.html
When running the code below, we can see -- for the 10 s sleep -- that the datatip is created (its square anchort and empty label are visible), but the text in the label is not rendered.
This bug does not occur
- without the -quit option when running Scilab
- with default datatips labels, when polyline.display_function ==""
code = [
"plot2d();"
"pl=gce().children(1);"
"function str = mytip(h),"
" str = ''bug 15790'';"
"endfunction,"
"pl.display_function = ''mytip'';"
"d = datatipCreate(pl,50);"
"sleep(10000);"
"mputl(d.text,TMPDIR+''/bug_15790.out'');;"
];
host(SCI+"/bin/scilab -nw -noatomsautoload -quit -e """+strcat(code)+"""");
File = TMPDIR+'/bug_15790.out';
assert_checktrue(isfile(File));
out = mgetl(File);
assert_checkequal(out(1),'bug 15790');
ERROR LOG:
----------
None. Missing rendering
HOW TO REPRODUCE THE BUG:
-------------------------
See above
Edited by Vincent COUVERT