Wrong result after calculate and clean value
Bug #1286932 reported by
Bartosz Kosiorek
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Calculator App |
Fix Released
|
Undecided
|
Bartosz Kosiorek |
Bug Description
Steps to reproduce:
1. Type 256 number
2. Press "/"
3. Press "2"
4. Press "=". Engine formula is 256/2
5. Press "=". Engine formula is (256/2)/2
6. Press "/". (Now pressing "C" is possible)
7. Press "2". Engine formula is ((256/2)/2)/2
8. Press "C". Engine formula is ((256/2)/2
8. Press "C". Engine formula is ((256/2
5. Press "=". Result 0 is wrong. Should be 128.
The root of cause of this problem is that function "this.pop", removes Close bracket, without removin Start bracket:
For example (256/2)/2 transform to (256/2 but should transform to 256/2
Related branches
lp:~gang65/ubuntu-calculator-app/1286932_fix
- Ubuntu Phone Apps Jenkins Bot: Approve (continuous-integration)
- Riccardo Padovani: Approve
- Mihir Soni: Approve
-
Diff: 42 lines (+7/-3)3 files modifiedSimple/SimplePage.qml (+4/-1)
debian/copyright (+1/-0)
formula.js (+2/-2)
description: | updated |
description: | updated |
Changed in ubuntu-calculator-app: | |
status: | Confirmed → In Progress |
Changed in ubuntu-calculator-app: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I have prepared working patch. I will add it after detailed tests will passed