Bug 430863 - 2.24.6: "Infinity" (e.g. as a result of a division by 0) is no longer displayed as a symbol, but a (very very) long integer
Summary: 2.24.6: "Infinity" (e.g. as a result of a division by 0) is no longer display...
Status: RESOLVED DUPLICATE of bug 430535
Alias: None
Product: skrooge
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 25.1.0
Assignee: Stephane MANKOWSKI
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-27 16:27 UTC by sdkfz262
Modified: 2020-12-27 19:34 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sdkfz262 2020-12-27 16:27:42 UTC
SUMMARY
The result of a division by 0 (which occurs, for instance, in the "full accounts" widget on the dashboard when one's account year-over-year increase is computed, but whose balance was 0 one year ago) is no longer depicted by the symbol "+∞" as it used to be in versions pre-2.24.

A very long integer (seems like the maximum value of a very large "int" type) is displayed instead.

Apart from being a little "puzzling" at first sight, it causes the widget to get an excessive width and "warp" the widgets alignment.


STEPS TO REPRODUCE
1. Add a "full accounts" widget on the dashboard;
2. Make sure an account with a null starting balance is displayed;
3. Observe.

OBSERVED RESULT
A very long int in the "%" column.

EXPECTED RESULT
"+∞" in the "%" column.

SOFTWARE/OS VERSIONS 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.20.4 
KDE Frameworks Version: 5.77.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Skrooge version 2.24.6
Comment 1 Stephane MANKOWSKI 2020-12-27 19:34:51 UTC
*** This bug has been marked as a duplicate of bug 430535 ***