Function get(...) retrieves handle of figure with outdated tag
Reported by Jan
BUG DESCRIPTION:
----------------
Trying to get the handle of a figure with the command get("TagOfFigure") sometimes return the wrong figure.
If a figure is first given tag A its handle can be retrieved with get("A")
If the same figure is given a new tag, B, the figure handle can still be retrieved with get("A") despite the tag property being shown as "B"
If the same figure again is given a new tag, C, the figure handle can still be retrieved with get("A") despite the tag property being shown as "C"
It seems that all the old tags are still mapped to the same figure they were originally assigned.
ERROR LOG:
----------
HOW TO REPRODUCE THE BUG:
-------------------------
f = scf(0);
clf(f);
f.tag = "InitialTag";
f.tag = "UpdatedTag";
f.tag = "EvenNewerTag";
fig = get("EvenNewerTag");
mprintf("Searched for figure with tag=''EvenNewerTag''. Figure with tag=''%s'' was returned\n", fig.tag);
fig = get("UpdatedTag");
mprintf("Searched for figure with tag=''UpdatedTag''. Figure with tag=''%s'' was returned\n", fig.tag);
fig = get("InitialTag");
mprintf("Searched for figure with tag=''InitialTag''. Figure with tag=''%s'' was returned\n", fig.tag);
OTHER INFORMATION:
------------------
!Version: scilab-6.0.0 !
! !
!Compilation date: Feb 14 2017 !
! !
!Compilation time: 14:46:31 !
! !
!Compiler Architecture: X64 !
! !
!Compiled with Microsoft compiler (180040629) !
! !
!BLAS library optimized version: MKL !
! !
!XML version: 2.9.1 !
! !
!Tcl/Tk: Enable !
! !
!TCL version: 8.5.9 !
! !
!TK version: 8.5.9 !
! !
!Path separator: ; !
! !
!Directory separator: \ !
! !
!PCRE Version: 8.21 !
!Memory in use: 47 % !
! !
!Total Physical Memory (Kbytes): 8328996 !
! !
!Free Physical Memory (Kbytes): 4354960 !
! !
!Total Paging File (Kbytes): 16656132 !
! !
!Free Paging File (Kbytes): 11527464 !
! !
!Total Virtual Memory (Kbytes): 8589934464 !
! !
!Free Virtual Memory (Kbytes): 8586297264 !
! !
!Free Extended Memory (Kbytes): 0 !
! !
!Operating System: Windows Seven x64 !
! !
!Intel(R) Core(TM) i7-3740QM CPU @ 2.70GHz !
! !
!Number of processors: 8 !
! !
!Number of Video cards: 1 !
! !
!Video card #0: AMD (ATI) FirePro M4000 (FireGL V) Mobili!
!ty Pro Graphics !
! !
!Primary Video card driver version: 9.10.0.0 !
! !
!Screen size: 1920 x 1080 32 bits !
! !
!Number of Monitors: 1