gnome-calculator result does not match displayed numbers when re-doing operation

Bug #1311920 reported by pablomme
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
gnome-calculator (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

Steps to reproduce (see attached 8-pane picture):

- Open gnome-calculator
- Type "1+1" (pane 1).
- Press enter. "2" is displayed in bold (pane 2).
- Type "+1" (pane 3).
- Press enter. "3" is displayed in bold (pane 4).

Now comes the issue:

- Press enter [*]. "2+1", with a bold "2", is displayed (pane 5).
- Press enter. "4" is displayed in bold (pane 6).
- Press enter [*]. "2+1", with a bold "2", is displayed (pane 7).
- Press enter. "5" is displayed in bold (pane 8).
- ...

It would appear that after pressing enter to go from the result to the previous expression, the portion in bold font really refers to the current last answer, "Ans" as denoted typically in calculators. Instead of the current last answer, gnome-calculator is incorrectly displaying what "Ans" was *before the expression was written*, but it then uses the current last answer in the operation, resulting in the nonsensical 2+1=4, etc., exemplified above.

"Ans" (or equivalent) should be displayed in these cases.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: gnome-calculator 1:3.10.2-0ubuntu1
ProcVersionSignature: Ubuntu 3.13.0-24.46-lowlatency 3.13.9
Uname: Linux 3.13.0-24-lowlatency x86_64
ApportVersion: 2.14.1-0ubuntu3
Architecture: amd64
CurrentDesktop: Unity
Date: Thu Apr 24 00:03:21 2014
InstallationDate: Installed on 2013-04-13 (375 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Alpha amd64 (20130413)
ProcEnviron:
 LANGUAGE=en_GB:en
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: gnome-calculator
UpgradeStatus: Upgraded to trusty on 2014-03-19 (35 days ago)

Revision history for this message
pablomme (pablomme) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. The issue you are reporting is an upstream one and it would be nice if somebody having it could send the bug to the developers of the software by following the instructions at https://wiki.ubuntu.com/Bugs/Upstream/GNOME. If you have done so, please tell us the number of the upstream bug (or the link), so we can add a bugwatch that will inform us about its status. Thanks in advance.

Changed in gnome-calculator (Ubuntu):
importance: Undecided → Low
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-calculator (Ubuntu):
status: New → Confirmed
Revision history for this message
Chris Malton (chrism-u) wrote :

This got fixed in gnome-calculator 3.10.3 based on my testing. Can somebody look at whether it's feasible to package this for 14.04?

Revision history for this message
Chris Malton (chrism-u) wrote :

I've pushed a testing package for 3.10.3 to my PPA - please could people test and confirm the results.

Note to Maintainer: If results look good, could you consider bundling into Ubuntu

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.