[Kmymoney-devel] [kmymoney4] [Bug 314491] KMyMoney Gnucash Import Crash

allan agander93 at gmail.com
Sun Feb 10 12:17:19 UTC 2013


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

--- Comment #12 from allan <agander93 at gmail.com> ---
This is not an area I've entered before but I notice that at line 1679 in
mymoneygncreader.cpp 

price = split.value() / split.shares();
#define NEW_DENOM 10000
        if (!split.shares().isZero())  // patch to fix divide by zero?
          newPrice = MyMoneyMoney(price.toDouble(), (signed64)NEW_DENOM);
        if (!newPrice.isZero()) {
          TRY {

It appears to be checking if split.shares()  isZero() after the division/
failure has occurred.

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


More information about the KMyMoney-devel mailing list