Skip to content

Commit

Permalink
QgsSymbolV2: only pop expression scope if it was really added
Browse files Browse the repository at this point in the history
(cherry-picked from ef77e19)
  • Loading branch information
nyalldawson committed Apr 15, 2016
1 parent e8dc831 commit 0161497
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/symbology-ng/qgssymbolv2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,8 @@ void QgsSymbolV2::renderFeature( const QgsFeature& feature, QgsRenderContext& co
delete segmentizedGeometry;
}

context.expressionContext().popScope();
if ( mSymbolRenderContext->expressionContextScope() )
context.expressionContext().popScope();
}

QgsSymbolV2RenderContext* QgsSymbolV2::symbolRenderContext()
Expand Down

0 comments on commit 0161497

Please sign in to comment.