[kmymoney] [Bug 491828] Currency settings show incorrect

Thomas Baumgart bugzilla_noreply at kde.org
Mon Aug 19 12:51:40 BST 2024


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

--- Comment #1 from Thomas Baumgart <tbaumgart at kde.org> ---
Very strange behavior which differs on Linux and Windows:

The code section

    precision = MyMoneyMoney::denomToPrec(currency.smallestAccountFraction());
    smallestFraction = MyMoneyMoney::ONE /
MyMoneyMoney(currency.smallestAccountFraction());
    qDebug() << "account precision" << precision <<
smallestFraction.formatMoney(QString(), precision);

provides the following output on Linux:

   account precision 8 "0,00000001"

but on Windows we get

   account precision 8 "0,00 €"

I have not clue what is going on here. This explains why 0,00 € is shown in the
dialog when editing the currency. BTW, the display in the edit currency is
identical no matter if compiled with MSVC (KDE CI/CD) or cross-compiled
(snapshots).

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


More information about the KMyMoney-devel mailing list