mirror of
https://invent.kde.org/graphics/okular
synced 2024-09-19 16:01:41 +00:00
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:
parent
5397f99262
commit
51076a2653
|
@ -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 )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue