diff --git a/ui/pageview.cpp b/ui/pageview.cpp index e7ed1826f..aece053b3 100644 --- a/ui/pageview.cpp +++ b/ui/pageview.cpp @@ -2396,8 +2396,8 @@ void PageView::updateItemSize( PageViewItem * item, int colWidth, int rowHeight { crop = okularPage->boundingBox(); - // Rotate the bounding box from upright Rotation0 to current page orientation: - for ( int i = okularPage->totalOrientation(); i > 0; --i ) + // Rotate the bounding box + for ( int i = okularPage->rotation(); i > 0; --i ) { Okular::NormalizedRect rot = crop; crop.left = 1 - rot.bottom;