Commit 115a64ae authored by Pino Toscano's avatar Pino Toscano

Use the size as specified by the images, not a fake one.

BUG: 169592

svn path=/trunk/KDE/kdegraphics/okular/; revision=855907
parent eceb09c3
......@@ -66,14 +66,8 @@ bool ComicBookGenerator::loadDocument( const QString & fileName, QVector<Okular:
for ( int i = 0; i < pages; ++i ) {
aux = mDocument.pageImage( i ).size();
if ( aux.height() > aux.width() ) {
Okular::Page * page = new Okular::Page( i, 600, 800, Okular::Rotation0 );
pagesVector[i] = page;
}
else {
Okular::Page * page = new Okular::Page( i, 800, 600, Okular::Rotation0 );
pagesVector[i] = page;
}
Okular::Page * page = new Okular::Page( i, aux.width(), aux.height(), Okular::Rotation0 );
pagesVector[i] = page;
}
return true;
......
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