Skip to content

Commit

Permalink
Set scope directly to new context
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Nov 18, 2016
1 parent 5514427 commit 4cc85fd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/server/qgswmsserver.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 4cc85fd

Please sign in to comment.