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++ ) {