mirror of
https://invent.kde.org/graphics/okular
synced 2024-11-05 18:34:53 +00:00
compare against correct rotation values (enum)
svn path=/trunk/KDE/kdegraphics/okular/; revision=767370
This commit is contained in:
parent
eaff357e78
commit
8916829ff3
1 changed files with 1 additions and 1 deletions
2
part.cpp
2
part.cpp
|
@ -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++;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue