[Kmymoney-devel] [Bug 256282] Floating point crash importing gnucash file

Cristian Onet onet.cristian at gmail.com
Mon Nov 15 14:32:27 CET 2010


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





--- Comment #3 from Cristian Onet <onet cristian gmail com>  2010-11-15 14:32:26 ---
The bug is caused by the price having the value 0. The price is used later on
in a conversion to the base currency which causes the crash.
There are two ways to fix this:
1) Don't allow the import of a price that has the value 0 because it doesn't
really make sense to have a conversion rate of 0 (KMyMoney's UI does not allow
entering a price with the value 0 - I wonder about other price sources though
such as online quotes).
2) Skip the conversion if the rate is 0; But with what kind of result? If let's
say 1 A = 0 B then how many A's would 1 B value?

Personally I prefer solution 1. I posted this here so the others can have their
say on how to fix this. Thanks for the file.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the KMyMoney-devel mailing list