Commit 31a163bc authored by Fabio D'Urso's avatar Fabio D'Urso

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.
parent d77ed7e9
......@@ -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++ )
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment