Backport: use the size as specified by the images, not a fake one.

CCBUG: 169592

svn path=/branches/KDE/4.1/kdegraphics/okular/; revision=855908
remotes/origin/KDE/4.1
Pino Toscano 18 years ago
parent 988de8f3cc
commit 677db64087
  1. 10
      generators/comicbook/generator_comicbook.cpp

@ -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;

Loading…
Cancel
Save