mirror of
https://invent.kde.org/graphics/okular
synced 2024-09-13 21:21:12 +00:00
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
This commit is contained in:
parent
d61cef693d
commit
0128f33f43
|
@ -669,7 +669,7 @@ template <class NormalizedShape, class Shape>
|
|||
bool RegularArea<NormalizedShape, Shape>::isNull() const
|
||||
{
|
||||
if ( this->isEmpty() )
|
||||
return false;
|
||||
return true;
|
||||
|
||||
typename QList<NormalizedShape>::const_iterator it = this->begin(), itEnd = this->end();
|
||||
for ( ; it != itEnd; ++it )
|
||||
|
|
Loading…
Reference in a new issue