[kmymoney] [Bug 402708] Division by zero errors in investement reports

Thomas Baumgart bugzilla_noreply at kde.org
Thu Jan 17 08:07:32 GMT 2019


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

Thomas Baumgart <thb at net-bembel.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Version Fixed In|                            |5.0.3
         Resolution|---                         |FIXED
             Status|REPORTED                    |RESOLVED
      Latest Commit|                            |https://commits.kde.org/kmy
                   |                            |money/741e848593162aa670c73
                   |                            |5b812b0574dbb483907

--- Comment #3 from Thomas Baumgart <thb at net-bembel.de> ---
Git commit 741e848593162aa670c735b812b0574dbb483907 by Thomas Baumgart.
Committed on 17/01/2019 at 07:28.
Pushed by tbaumgart into branch '5.0'.

Fix division by zero errors in QueryTable

Summary:
Code used to try to divide by zero. Fixed it to always check for the
denominator being 0 beforehand.

Original patch by Zoltan Ivanfi
FIXED-IN: 5.0.3

Reviewers: #kmymoney, tbaumgart

Reviewed By: #kmymoney, tbaumgart

Subscribers: aacid, tbaumgart, ostroffjh

Differential Revision: https://phabricator.kde.org/D17871

M  +8    -5    kmymoney/plugins/views/reports/core/querytable.cpp
M  +28   -0    kmymoney/plugins/views/reports/core/tests/querytable-test.cpp
M  +1    -0    kmymoney/plugins/views/reports/core/tests/querytable-test.h

https://commits.kde.org/kmymoney/741e848593162aa670c735b812b0574dbb483907

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


More information about the KMyMoney-devel mailing list