Skip to content
Permalink
Browse files

Always clear pen/brush before drawing layer effects (fix #15696)

  • Loading branch information
nyalldawson committed Oct 16, 2016
1 parent 6c53641 commit 55f207108d0b4ce7135020e53868e571bab75486
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/core/effects/qgspainteffect.cpp
@@ -163,6 +163,11 @@ void QgsPaintEffect::end( QgsRenderContext &context )
context.setPainter( mPrevPainter );
mPrevPainter = nullptr;

// clear any existing pen/brush - sometimes these are not correctly restored when restoring a painter
// with a QPicture destination - see #15696
context.painter()->setPen( Qt::NoPen );
context.painter()->setBrush( Qt::NoBrush );

//draw using effect
render( *mTempPicture, context );

0 comments on commit 55f2071

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