Backport r1039155 | aacid | 2009-10-22 22:51:18 +0200 (Thu, 22 Oct 2009) | 3 lines

crop area needs to be just against user rotation, not taking account page orientation since the cropbox is done on page orientation coords
BUGS: 196761

svn path=/branches/KDE/4.3/kdegraphics/okular/; revision=1039156
remotes/origin/KDE/4.3
Albert Astals Cid 17 years ago
parent adc7ce882d
commit 6c2c3200a3
  1. 4
      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;

Loading…
Cancel
Save