Skip to content

Commit b3d5aab

Browse files
committedFeb 27, 2018
Set scope directly to new context
1 parent b385f42 commit b3d5aab

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
@@ -2198,9 +2198,8 @@ int QgsWMSServer::configureMapRender( const QPaintDevice* paintDevice ) const
21982198
if ( ctx )
21992199
{
22002200
QgsExpressionContext newContext;
2201+
newContext.appendScope( QgsExpressionContextUtils::projectScope() );
22012202
ctx->setExpressionContext( newContext );
2202-
QgsExpressionContext& expCtx = ctx->expressionContext();
2203-
expCtx.appendScope( QgsExpressionContextUtils::projectScope() );
22042203
}
22052204

22062205
return 0;

0 commit comments

Comments
 (0)
Please sign in to comment.