[kmymoney] [Bug 491828] Currency settings show incorrect

Ralf Habacker bugzilla_noreply at kde.org
Tue Aug 20 00:52:16 BST 2024


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

--- Comment #7 from Ralf Habacker <ralf.habacker at freenet.de> ---
(In reply to Ralf Habacker from comment #6)
> which indicates that there is a issue with the formatMoney() method.

I think this error was introduced with
https://invent.kde.org/office/kmymoney/-/commit/0487f47b6da4b2cee47a13983f375eda7f205501
in the method mentioned below

QString MyMoneyMoney::formatMoney(const QString& currency, const int prec, bool
showThousandSeparator) const
{
    if (eMyMoney::Money::_useQtInternalFormmater) {
        return eMyMoney::Money::_locale.toCurrencyString(this->toDouble(),
currency, prec);
    }

`eMyMoney::Money::_useQtInternalFormmater` is true and thus the formatting of
the numbers is carried out by Qt, which does not work here.  Commenting out the
whole if part, returns the expected value in the smallest ... unit.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the KMyMoney-devel mailing list