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

--- Comment #1 from Dimitrios Glentadakis <[email protected]> ---
Created attachment 194135
  --> https://bugs.kde.org/attachment.cgi?id=194135&action=edit
Demo of the issue and how to reproduce

The issue is reproducible when leaving an AmountEdit field with Tab. For
example, entering 86,00 in an amount field can become 8,60 after focus-out.

Local investigation points to stale AmountEdit internal state rather than
decimal parsing. AmountEdit keeps separate cached strings for value and shares.
value() and shares() read those cached strings, not
necessarily the visible QLineEdit text. In the textChanged handler,
m_initialExchangeRate is applied even when the widget is effectively back in
single-currency mode. If a stale exchange rate remains from
previous multi-currency state, focus-out/Tab can propagate a scaled cached
amount.

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

Reply via email to