https://bugs.kde.org/show_bug.cgi?id=524955

Thomas Baumgart <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/offi |https://invent.kde.org/offi
                   |ce/kmymoney/-/commit/ac1ca6 |ce/kmymoney/-/commit/685e55
                   |3bc6ef4b38e12d174de7d4470b6 |94e8d107be0c3e7e26d3a21892e
                   |da759ca                     |aa5dbe7

--- Comment #3 from Thomas Baumgart <[email protected]> ---
Git commit 685e5594e8d107be0c3e7e26d3a21892eaa5dbe7 by Thomas Baumgart, on
behalf of Dimitrios Glentadakis.
Committed on 06/09/2026 at 07:10.
Pushed by tbaumgart into branch '5.2'.

Use monetary separators in the amount calculator

AmountEdit and MyMoneyMoney format amounts according to LC_MONETARY,
while KMyMoneyCalculator used the default QLocale, which follows
LC_NUMERIC.

When the two locale categories use different separators, for example
LC_NUMERIC=C and LC_MONETARY=fr_FR.UTF-8, the calculator removes the
decimal comma from an initial amount as if it were a thousands
separator. An amount such as 12,50 is therefore calculated as 1250.

Use the decimal and thousands separators already detected by
MyMoneyMoney for the calculator display, initial operand and pasted
values. This keeps the calculator consistent with the AmountEdit field
that provides and receives its values.
FIXED-IN: 5.2.3
(cherry picked from commit ac1ca63bc6ef4b38e12d174de7d4470b6da759ca)

M  +17   -8    kmymoney/widgets/kmymoneycalculator.cpp
M  +7    -7    kmymoney/widgets/kmymoneycalculator.h

https://invent.kde.org/office/kmymoney/-/commit/685e5594e8d107be0c3e7e26d3a21892eaa5dbe7

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to