Skip to content
Permalink
Browse files

Set scope directly to new context

  • Loading branch information
mhugent committed Nov 18, 2016
1 parent 5514427 commit 4cc85fd2a9a6c13fdd44160f0258b32a452cd4a5
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/server/qgswmsserver.cpp
@@ -2084,9 +2084,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 4cc85fd

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