backport r767370

****************
compare against correct rotation values (enum)

svn path=/branches/KDE/4.0/kdegraphics/okular/; revision=767374
remotes/origin/KDE/4.0
Albert Astals Cid 18 years ago
parent bb412733a9
commit 95dad13385
  1. 2
      part.cpp

@ -1569,7 +1569,7 @@ void Part::setupPrint( QPrinter &printer )
page = m_document->page(i);
width = page->width();
height = page->height();
if (page->orientation() == 90 || page->orientation() == 270) qSwap(width, height);
if (page->orientation() == Okular::Rotation90 || page->orientation() == Okular::Rotation270) qSwap(width, height);
if (width > height) landscape++;
else portrait++;
}

Loading…
Cancel
Save