Skip to content
Permalink
Browse files

Set scope directly to new context

  • Loading branch information
mhugent committed Feb 27, 2018
1 parent b385f42 commit b3d5aaba6103fc624f051f0e0fd489c00492c08c
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/server/qgswmsserver.cpp
@@ -2198,9 +2198,8 @@ int QgsWMSServer::configureMapRender( const QPaintDevice* paintDevice ) const
if ( ctx )
{
QgsExpressionContext newContext;
newContext.appendScope( QgsExpressionContextUtils::projectScope() );
ctx->setExpressionContext( newContext );
QgsExpressionContext& expCtx = ctx->expressionContext();
expCtx.appendScope( QgsExpressionContextUtils::projectScope() );
}

return 0;

0 comments on commit b3d5aab

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