Commit 6968d1d1 authored by Pino Toscano's avatar Pino Toscano

isNull() -> !isValid(), as it checks for non-null-but-invalid sizes as well

svn path=/trunk/KDE/kdegraphics/okular/; revision=979620
parent 76126bf2
......@@ -184,7 +184,7 @@ QSize Document::pageSize( int page ) const
QImageReader reader( dev.get() );
if ( reader.canRead() ) {
QSize s = reader.size();
if ( s.isNull() ) {
if ( !s.isValid() ) {
s = reader.read().size();
}
return s;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment