Skip to content

Commit ef77e19

Browse files
committedApr 13, 2016
QgsSymbolV2: only pop expression scope if it was really added
1 parent cbe919d commit ef77e19

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/core/symbology-ng/qgssymbolv2.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,8 @@ void QgsSymbolV2::renderFeature( const QgsFeature& feature, QgsRenderContext& co
978978
delete segmentizedGeometry;
979979
}
980980

981-
context.expressionContext().popScope();
981+
if ( mSymbolRenderContext->expressionContextScope() )
982+
context.expressionContext().popScope();
982983
}
983984

984985
QgsSymbolV2RenderContext* QgsSymbolV2::symbolRenderContext()

0 commit comments

Comments
 (0)
Failed to load comments.