Add a check for whether the item isn't actually visible

Authored by apol on Jun 22 2017, 2:18 PM.

Description

Add a check for whether the item isn't actually visible

Summary:
if width or height is 0 we just get warnings such as:
QImage::scaled: Image is a null image

And in the end we're performing void operations that we could skip
altohether.

Test Plan: Now I can run KAlgebra without the warning

Reviewers: Kirigami, mart

Reviewed By: Kirigami, mart

Subscribers: plasma-devel

Tags: Kirigami

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

Details

Committed
apolJun 30 2017, 10:07 AM
Reviewer
Kirigami
Differential Revision
D6343: Add a check for whether the item isn't actually visible
Parents
R169:5c866fbe1eaf: typo --
Branches
Unknown
Tags
Unknown