From 95dad13385621c66b53cbb0a04081e6aeb841f95 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Sun, 27 Jan 2008 22:06:58 +0000 Subject: [PATCH] backport r767370 **************** compare against correct rotation values (enum) svn path=/branches/KDE/4.0/kdegraphics/okular/; revision=767374 --- part.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++; }