Skip to content

Commit 14a8df4

Browse files
authoredMay 17, 2017
[raster] fix raster blending (cherry-pick 93c59f4)
1 parent 126cf5f commit 14a8df4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎src/core/raster/qgsrasterdrawer.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,10 @@ void QgsRasterDrawer::draw( QPainter* p, QgsRasterViewPort* viewPort, const QgsM
9999

100100
delete block;
101101

102-
p->setCompositionMode( QPainter::CompositionMode_SourceOver ); // go back to the default composition mode
102+
if ( feedback && feedback->renderPartialOutput() )
103+
{
104+
p->setCompositionMode( QPainter::CompositionMode_SourceOver ); // go back to the default composition mode
105+
}
103106

104107
// ok this does not matter much anyway as the tile size quite big so most of the time
105108
// there would be just one tile for the whole display area, but it won't hurt...

0 commit comments

Comments
 (0)
Please sign in to comment.