consider annotBoundary as boundary *without* cropping to the requested limits

this should fix drawing problems with note, stamp, and geometric annotations

BUG: 160396

svn path=/trunk/KDE/kdegraphics/okular/; revision=870163
remotes/origin/old/work/tiff-improvements
Pino Toscano 18 years ago
parent e0f2e1dd13
commit fba08521c0
  1. 2
      ui/pagepainter.cpp

@ -536,7 +536,7 @@ void PagePainter::paintCroppedPageOnPainter( QPainter * destPainter, const Okula
acolor.setAlpha( opacity );
// get annotation boundary and drawn rect
QRect annotBoundary = a->transformedBoundingRectangle().geometry( scaledWidth, scaledHeight ).translated( -scaledCrop.topLeft() ).intersect( limits );
QRect annotBoundary = a->transformedBoundingRectangle().geometry( scaledWidth, scaledHeight ).translated( -scaledCrop.topLeft() );
QRect annotRect = annotBoundary.intersect( limits );
QRect innerRect( annotRect.left() - annotBoundary.left(), annotRect.top() -
annotBoundary.top(), annotRect.width(), annotRect.height() );

Loading…
Cancel
Save