diff --git a/ui/pagepainter.cpp b/ui/pagepainter.cpp index db82119ca..2881ee46e 100644 --- a/ui/pagepainter.cpp +++ b/ui/pagepainter.cpp @@ -836,7 +836,7 @@ void PagePainter::paintCroppedPageOnPainter( QPainter * destPainter, const Okula { if ( limitsEnlarged.intersects( rect->boundingRect( scaledWidth, scaledHeight ).translated( -scaledCrop.topLeft() ) ) ) { - mixedPainter->strokePath( rect->region(), QPen( normalColor ) ); + mixedPainter->strokePath( rect->region(), QPen( normalColor, 0 ) ); } } } diff --git a/ui/pagepainter.h b/ui/pagepainter.h index 42be54299..1300c9b06 100644 --- a/ui/pagepainter.h +++ b/ui/pagepainter.h @@ -71,8 +71,8 @@ class Q_DECL_EXPORT PagePainter static void drawShapeOnImage( QImage & image, const NormalizedPath & imagePoints, - bool closeShape = true, - const QPen & pen = QPen(), + bool closeShape, + const QPen & pen, const QBrush & brush = QBrush(), double penWidthMultiplier = 1.0, RasterOperation op = Normal