[Calculator app] Wrong calculation results after pressing "C"
Bug #1164973 reported by
Gustavo Pichorim Boiko
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Calculator App |
Fix Released
|
High
|
Riccardo Ferrazzo | ||
Ubuntu UX |
Fix Released
|
High
|
Christina Li |
Bug Description
While testing the calculator application, I found that after playing a bit with typing and clearing (using C), so here is an easy way to reproduce it:
- Type 1+1=
- Press C until it clears it all
- Type 1+1=
See the result.
Please after fixing the bug add an autopilot test for this usecase.
Related branches
lp:~f-riccardo87/ubuntu-calculator-app/new-formula-structure
- Gustavo Pichorim Boiko (community): Approve
- Ubuntu Phone Apps Jenkins Bot: Approve (continuous-integration)
- Riccardo Ferrazzo (community): Abstain
-
Diff: 589 lines (+284/-172)8 files modifiedSimple/CalcKeyboard.qml (+4/-4)
Simple/CalcLabel.qml (+7/-0)
Simple/Screen.qml (+1/-0)
Simple/SimplePage.qml (+34/-143)
formula.js (+133/-0)
tests/autopilot/ubuntu_calculator_app/emulators/simple_page.py (+12/-0)
tests/autopilot/ubuntu_calculator_app/tests/__init__.py (+12/-12)
tests/autopilot/ubuntu_calculator_app/tests/test_simple_page.py (+81/-13)
Changed in ubuntu-calculator-app: | |
assignee: | nobody → Riccardo Ferrazzo (f-riccardo87) |
importance: | Undecided → High |
summary: |
- Wrong calculation results after pressing "C" + [Calculator app] Wrong calculation results after pressing "C" |
Changed in ubuntu-ux: | |
assignee: | nobody → Calum Pringle (calumpringle) |
status: | New → Triaged |
importance: | Undecided → High |
assignee: | Calum Pringle (calumpringle) → Christina Li (christina-li) |
Changed in ubuntu-calculator-app: | |
status: | Fix Committed → Fix Released |
Changed in ubuntu-ux: | |
status: | Triaged → Fix Committed |
Changed in ubuntu-ux: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
The current implementation of "C" is working like "undo" on a word processor. Backing out of a transaction.
This is somewhat unexpected, and I'd like some input from design as to exactly how C should behave.
Currently (11 April, daily image):-
Press 2 + 2 =
Screen shows:-
2
+ 2
---
4
When you press "C" the display changes to:-
2
+ 2
On a traditional calculator the C key usually clears what is on display, it doesn't undo the last transaction. Can design weigh in and give us some guidance on what it "should" do?