Marmo / debitum

free and libre IOU tracker for Android
GNU General Public License v3.0
85 stars 7 forks source link

Amounts multiplied with wrong factor when changing decimals setting immediately after cancelling decimals setting change #80

Closed Marmo closed 2 years ago

Marmo commented 2 years ago
  1. change decimals setting from 3 to 2
  2. cancel the change when the warning dialog appears
  3. setting is on 2 anyway (when leaving the settings now, everything is ok (amounts correct, still three decimals, re-openig settings shows 3 decimals))
  4. change decimals to 1

Result: all amounts are multiplied by 10 (probably dependent on the specific decimals settings chosen) Expected: all amounts remain the same