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 Feb 27, 2018
1 parent b3d5aab commit e321acd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/qgswmsserver.cpp
Expand Up @@ -2198,6 +2198,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 e321acd

Please sign in to comment.