Comment 3 for bug 1209326

Revision history for this message
Tom Bjerck (tom-bjerck) wrote : Re: calculator fails to do proper calculatoins after CTRL+Z and Enter

I can only reproduce this if I do sub calculations like:
1+1<enter>
*2<enter>
If I now alternate between <ctrl-z> and <enter> I get the successive results: "2*2", "8", "2*2", "16", "2*2", "32", ... , and not the expected succession of "2*2", "4", "2*2", "4", ...

Successive <ctrl-z><enter> sequences seems to calculate ((1+1)*2)*2, (((1+1)*2)*2)*2, ((((1+1)*2)*2)*2)*2, ...

Obviously there is an error in the code somewhere.