GNOME Bugzilla – Bug 419927
calculator rcl function does not work as documented
Last modified: 2007-04-30 15:22:13 UTC
The bug has been opened on https://launchpad.net/bugs/92863 "Applications Calculator Select any calculator except the most basic one. Put a number in the display field ( i.e. 33) Press STO key, select R5 and save. Clear the display field. Press RCL key, select R5. Display shows "R5", instead of "33". ..."
You can then hit Return to calculate the answer, and you get what's in R5 (i.e. 33). I'd prefer it automatically convert from R<n> to the contents of R<n> when you do the actual Rcl, so as this problem is only in "Arithmetic Precedence" mode, assigning to Sami so he can fix it.
Created attachment 85827 [details] [review] Patch from Sami. To be tested...
On closer investigation there are two minor problems with this patch: 1/ Use of tabs for indentation. The unit of indentation within gcalctool code is 4 spaces. 2/ Declaration of variables need to be at the top of a code block in order to properly compile with older versions of the gcc compiler. I've asked Sami to rework the patch and resubmit it.
Created attachment 87273 [details] [review] New version of the patch from Sami.
Patched committed. Changes in SVN HEAD/trunk Closing as FIXED. Thanks.