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.
remotes/origin/KDE/4.11
Fabio D'Urso 13 years ago
parent d77ed7e998
commit 31a163bc3d
  1. 2
      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++ )
{

Loading…
Cancel
Save