Fix isNull check for RegularArea

Authored by tobiasdeiminger on Sep 8 2018, 8:47 AM.

Description

Fix isNull check for RegularArea

Summary:
First check in RegularArea::isNull sais this: "I'm a QList. If I'm empty, I'm not null". That doesn't make sense, invert it.

The next check says: "If I contain at least one shape which is not null, I'm not null.". That makes sense, keep it.

Test Plan: - check for regression in callers (TextPage::findText, TextPage::text, TextPage::words)

Reviewers: aacid

Reviewed By: aacid

Subscribers: okular-devel

Tags: Okular

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

Details

Committed
tobiasdeimingerSep 8 2018, 8:30 PM
Reviewer
aacid
Differential Revision
D15344: Fix isNull check for RegularArea
Parents
R223:d61cef693d96: Store all annotation color attributes as ARGB string
Branches
Unknown
Tags
Unknown