Skip to content
Permalink
Browse files

QgsSymbolV2: only pop expression scope if it was really added

  • Loading branch information
m-kuhn committed Apr 13, 2016
1 parent cbe919d commit ef77e19fe342e6734487ba3608a8c12ee72b0bf7
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/core/symbology-ng/qgssymbolv2.cpp
@@ -978,7 +978,8 @@ void QgsSymbolV2::renderFeature( const QgsFeature& feature, QgsRenderContext& co
delete segmentizedGeometry;
}

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

QgsSymbolV2RenderContext* QgsSymbolV2::symbolRenderContext()

1 comment on commit ef77e19

@m-kuhn

This comment has been minimized.

Copy link
Member Author

@m-kuhn m-kuhn commented on ef77e19 Apr 13, 2016

Since this should only be called after startRender() there should always be a scope I think. But better safe than sorry.

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