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

David Edmundson <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
      Latest Commit|                            |https://commits.kde.org/kde
                   |                            |sdk-thumbnailers/de3c82950d
                   |                            |9a9bdfb3cfb8897b1d12eaa2000
                   |                            |66e
             Status|CONFIRMED                   |RESOLVED

--- Comment #4 from David Edmundson <[email protected]> ---
Git commit de3c82950d9a9bdfb3cfb8897b1d12eaa200066e by David Edmundson.
Committed on 31/10/2019 at 14:59.
Pushed by davidedmundson into branch 'Applications/19.08'.

[pocreator] Avoid divide by 0

Summary:
If a po file has no strings, the current code will divide by 0 when
trying to draw some pie charts.

This patch aborts early which falls back to a regular icon.

Test Plan:
touch empty.po
open dolphin in cwd

Reviewers: ngraham

Reviewed By: ngraham

Subscribers: ngraham

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

M  +5    -0    po_thumbnailer/pocreator.cpp

https://commits.kde.org/kdesdk-thumbnailers/de3c82950d9a9bdfb3cfb8897b1d12eaa200066e

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

Reply via email to