SRU micro-release (MRE) 3.10.3 from utopic to trusty - calculator fails to do proper calculatoins after CTRL+Z and Enter
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNOME Calculator |
Fix Released
|
High
|
|||
gnome-calculator (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Trusty |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Micro-release 3.10.3 in utopic fixes Bug #1209326 and Bug #1362919.
The update fixes these issues:
* Fix crash on super/subscript buttons
* Fix previous answer on undo --> (Bug #1209326)
* Fix segfault on repeated undo
* Update translation
I've backported the package from utopic to trusty without any changes to my PPA https:/
I've attached a diff file. Please test and SRU to trusty.
[Impact]
This bug gives wrong results when undo is used.
[Test Case]
1. Open calculator and type "5000/60" followed by <Enter>. The calculator produces the right answer, 83.333...
2. Type "/60" followed by <Enter> to divide by 60 again. The calculator again produces the right answer, 1.388...
3. Press <ctrl>-Z to undo the last calculation.
4. Press <backspace> twice to delete the last "60".
5. Type "12" followed by <Enter>, to divide by 12 instead.
The calculator gives the wrong answer.
[Regression Potential]
The fixes themselves could introduce new bugs.
-------
I found this bug trying to redo a calculation. Do a calculation maybe with decimals like I did and then press CTRL+Z and hit enter and you should see the bug.
It's making a bad calculation after these steps.
ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: gnome-calculator 1:3.8.1-0ubuntu1
Uname: Linux 3.10.2-
ApportVersion: 2.9.2-0ubuntu8.1
Architecture: amd64
Date: Wed Aug 7 13:08:05 2013
EcryptfsInUse: Yes
InstallationDate: Installed on 2013-07-10 (28 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
MarkForUpload: True
SourcePackage: gnome-calculator
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
- Jamie Strandboge: Needs Fixing
-
Diff: 106 lines (+57/-0)5 files modified.pc/applied-patches (+1/-0)
debian/changelog (+6/-0)
debian/patches/fix-the-undo-ctrl-z-bug.patch (+45/-0)
debian/patches/series (+1/-0)
src/math-equation.vala (+4/-0)
Changed in gnome-calculator (Ubuntu Raring): | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in gnome-calculator (Ubuntu Saucy): | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in gnome-calculator: | |
importance: | Unknown → High |
status: | Unknown → Confirmed |
tags: | added: trusty |
Changed in gnome-calculator: | |
status: | Confirmed → Fix Released |
Changed in gnome-calculator (Ubuntu): | |
status: | Triaged → Fix Released |
description: | updated |
no longer affects: | gnome-calculator (Ubuntu Raring) |
no longer affects: | gnome-calculator (Ubuntu Saucy) |
Changed in gnome-calculator (Ubuntu): | |
status: | In Progress → Fix Released |
Changed in gnome-calculator (Ubuntu Trusty): | |
status: | New → Triaged |
importance: | Undecided → Medium |
Glad I'm not crazy. Recorded what I thought were steps to reproduce with gnome-calculator 1:3.8.1-0ubuntu1:
Enter:
5994.34 * .50
see 5994.34 x .50 displayed
hit enter
result: 2997.17
^Z undo
see 5994.34 x .50 displayed
hit enter
result: 1498.585
^Z undo
see 5994.34 x .50 displayed
hit enter
result: 749.2925
... however it seems like state has to go crazy as indicated by the "5994.34" in "5994.34 x .50" becoming boldface like an unedited result - making the actual outcome equivalent to hitting return without editing the formula to repeat the last operation (*.50), and meaning the above steps failed to reproduce it after some fiddling where it was "not in the mood" to mistreat the formula as an untouched result as apparently indicated by showing boldface.
Nasty.