tex string used for text uicontrol string property are not updated
Reported by Serge STEER
BUG DESCRIPTION:
----------------
If one passes a tex string for the string property of a text uicontrol and changes it for a new tex string the old value remains
ERROR LOG:
----------
none
HOW TO REPRODUCE THE BUG:
-------------------------
just execute the following instructions
f=figure();
T=uicontrol("parent", f,"style","text","string","$\sqrt{x+1}$","position",[0,200,300,100]);
T.string="$\sin(x+3)$";
OTHER INFORMATION:
------------------
A work around can be to set the string property to an empty string before setting it to the new tex string:
f=figure();
T=uicontrol("parent", f,"style","text","string","$\sqrt{x+1}$","position",[0,200,300,100]);
T.string="";
T.string="$\sin(x+3)$";