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 Feb 27, 2018
1 parent b385f42 commit b3d5aab
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/server/qgswmsserver.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit b3d5aab

Please sign in to comment.