mirror of
https://invent.kde.org/graphics/okular
synced 2024-09-13 13:11:41 +00:00
any negative page number represents an invalid viewport
svn path=/trunk/KDE/kdegraphics/okular/; revision=660436
This commit is contained in:
parent
a9532ee414
commit
892df34b19
|
@ -2407,7 +2407,7 @@ QString DocumentViewport::toString() const
|
|||
|
||||
bool DocumentViewport::isValid() const
|
||||
{
|
||||
return pageNumber != -1;
|
||||
return pageNumber >= 0;
|
||||
}
|
||||
|
||||
bool DocumentViewport::operator==( const DocumentViewport & vp ) const
|
||||
|
|
Loading…
Reference in a new issue