Skip to content

Commit

Permalink
Add global scope in server
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Nov 18, 2016
1 parent 339986d commit 0185453
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/qgswmsserver.cpp
Expand Up @@ -2084,6 +2084,7 @@ int QgsWMSServer::configureMapRender( const QPaintDevice* paintDevice ) const
if ( ctx )
{
QgsExpressionContext newContext;
newContext.appendScope( QgsExpressionContextUtils::globalScope() );
newContext.appendScope( QgsExpressionContextUtils::projectScope() );
ctx->setExpressionContext( newContext );
}
Expand Down

0 comments on commit 0185453

Please sign in to comment.