From 31a163bc3d5d889dc3b1c263c3bbda7228e994be Mon Sep 17 00:00:00 2001 From: Fabio D'Urso Date: Tue, 2 Jul 2013 00:25:11 +0200 Subject: [PATCH] Use same fill rule as Poppler in polygon annotations rendered by PagePainter This is not going to break existing annotations because background color in polygon annotations is a new 4.11 feature. --- ui/pagepainter.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/pagepainter.cpp b/ui/pagepainter.cpp index 30dbe7f7e..d5d9c3e03 100644 --- a/ui/pagepainter.cpp +++ b/ui/pagepainter.cpp @@ -987,6 +987,8 @@ void PagePainter::drawShapeOnImage( { // create a 'path' QPainterPath path; + path.setFillRule( Qt::WindingFill ); + path.moveTo( normPath[ 0 ].x * fImageWidth, normPath[ 0 ].y * fImageHeight ); for ( int i = 1; i < pointsNumber; i++ ) {