GNOME Bugzilla – Bug 439985
Negative value not saved in memory register across invocations
Last modified: 2007-05-21 18:07:08 UTC
[ Forwarded from http://bugs.debian.org/423946 ] It appears that any negative value saved in the memory register does not persist across invocations.
Confirmed. The negative value is getting saved in the gcalctool gconf setting (register<n>) correctly -- confirmed with gconf-editor -- it's just not getting read back in properly, the next time that gcalctool starts up. I'll look into it more deeply tomorrow. Thanks.
The problem is in MPstr_to_num() in display.c. Looks like there needs to be a check on whether the first character in the string is "-", and if it is the number needs to be negated with mpneg(). Hopefully a patch tomorrow.
Created attachment 88559 [details] [review] Patch to hopefully fix the problem. Patch committed to SVN trunk/HEAD. This was also a problem was negative constants. Fix will also appear in the next gcalctool tarball release (5.19.3).