Changeset View
Changeset View
Standalone View
Standalone View
core/area.h
Show First 20 Lines • Show All 663 Lines • ▼ Show 20 Line(s) | 663 | #ifdef DEBUG_REGULARAREA | |||
---|---|---|---|---|---|
664 | qCDebug(OkularCoreDebug) << "from" << prev_end << "to" << this->count(); | 664 | qCDebug(OkularCoreDebug) << "from" << prev_end << "to" << this->count(); | ||
665 | #endif | 665 | #endif | ||
666 | } | 666 | } | ||
667 | 667 | | |||
668 | template <class NormalizedShape, class Shape> | 668 | template <class NormalizedShape, class Shape> | ||
669 | bool RegularArea<NormalizedShape, Shape>::isNull() const | 669 | bool RegularArea<NormalizedShape, Shape>::isNull() const | ||
670 | { | 670 | { | ||
671 | if ( this->isEmpty() ) | 671 | if ( this->isEmpty() ) | ||
672 | return false; | 672 | return true; | ||
673 | 673 | | |||
674 | typename QList<NormalizedShape>::const_iterator it = this->begin(), itEnd = this->end(); | 674 | typename QList<NormalizedShape>::const_iterator it = this->begin(), itEnd = this->end(); | ||
675 | for ( ; it != itEnd; ++it ) | 675 | for ( ; it != itEnd; ++it ) | ||
676 | if ( !givePtr( *it )->isNull() ) | 676 | if ( !givePtr( *it )->isNull() ) | ||
677 | return false; | 677 | return false; | ||
678 | 678 | | |||
679 | return true; | 679 | return true; | ||
680 | } | 680 | } | ||
▲ Show 20 Lines • Show All 223 Lines • Show Last 20 Lines |