diff --git a/part.cpp b/part.cpp index ff72064c9..0d63e9c85 100644 --- a/part.cpp +++ b/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++; }