Fill polygon annotations with their inner color in PagePainter (for non-PDF docs)

Note: Poppler doesn't blend multiply in this case. Maybe we can make this
annotation unbuffered in PagePainter too?
This commit is contained in:
Fabio D'Urso 2012-07-27 04:45:16 +02:00
parent 5397f99262
commit 51076a2653

View file

@ -475,11 +475,15 @@ void PagePainter::paintCroppedPageOnPainter( QPainter * destPainter, const Okula
}
const QPen linePen = buildPen( a, a->style().width(), a->style().color() );
QBrush fillBrush;
if ( la->lineClosed() && la->lineInnerColor().isValid() )
fillBrush = QBrush( la->lineInnerColor() );
// draw the line as normalized path into image
drawShapeOnImage( backImage, path, la->lineClosed(),
linePen,
QBrush(), pageScale ,Multiply);
fillBrush, pageScale ,Multiply);
if ( path.count() == 2 && fabs( la->lineLeadingForwardPoint() ) > 0.1 )
{