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

BUG: 169592

svn path=/trunk/KDE/kdegraphics/okular/; revision=855907
remotes/origin/old/work/tiff-improvements
Pino Toscano 18 years ago
parent eceb09c379
commit 115a64ae72
  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