Skip to content
Browse files

Change last composition from SourceOver to DestinationOver. This fix …

…the composition of unsmasked element with masked element under the maske when masked element has some alpha blending. This fix tests 'mask_with_effect' and test 'layout_export'.
  • Loading branch information
obrix authored and nyalldawson committed Jun 3, 2020
1 parent 171a44a commit f13ae9708aee41ebd40ff5c71a1a63f620dc54bd
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsmaprendererjob.cpp
@@ -854,7 +854,7 @@ void QgsMapRendererJob::composeSecondPass( LayerRenderJobs &secondPassJobs, Labe
job.firstPassJob->img->save( QString( "/tmp/second_%1_first_pass_2.png" ).arg( i ) );
// ... and overpaint the second pass' image on it
painter1->setCompositionMode( QPainter::CompositionMode_SourceOver );
painter1->setCompositionMode( QPainter::CompositionMode_DestinationOver );
painter1->drawImage( 0, 0, *job.img );
job.img->save( QString( "/tmp/second_%1_b.png" ).arg( i ) );

0 comments on commit f13ae97

Please sign in to comment.
You can’t perform that action at this time.