compare against correct rotation values (enum)

svn path=/trunk/KDE/kdegraphics/okular/; revision=767370
This commit is contained in:
Albert Astals Cid 2008-01-27 21:58:46 +00:00
parent eaff357e78
commit 8916829ff3

View file

@ -1570,7 +1570,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++;
}