Skip to content

Commit 4cc85fd

Browse files
committedNov 18, 2016
Set scope directly to new context
1 parent 5514427 commit 4cc85fd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎src/server/qgswmsserver.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2084,9 +2084,8 @@ int QgsWMSServer::configureMapRender( const QPaintDevice* paintDevice ) const
20842084
if ( ctx )
20852085
{
20862086
QgsExpressionContext newContext;
2087+
newContext.appendScope( QgsExpressionContextUtils::projectScope() );
20872088
ctx->setExpressionContext( newContext );
2088-
QgsExpressionContext& expCtx = ctx->expressionContext();
2089-
expCtx.appendScope( QgsExpressionContextUtils::projectScope() );
20902089
}
20912090

20922091
return 0;

0 commit comments

Comments
 (0)
Please sign in to comment.