Skip to content

Commit

Permalink
Keep mapSettings scope
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed Apr 13, 2018
1 parent e8ce121 commit 783702e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/server/services/wms/qgswmsrenderer.cpp
Expand Up @@ -1127,7 +1127,9 @@ namespace QgsWms
}

// add context from project (global variables, ...)
mapSettings.setExpressionContext( mProject->createExpressionContext() );
QgsExpressionContext context = mProject->createExpressionContext();
context << QgsExpressionContextUtils::mapSettingsScope( mapSettings );
mapSettings.setExpressionContext( context );
}

QDomDocument QgsRenderer::featureInfoDocument( QList<QgsMapLayer *> &layers, const QgsMapSettings &mapSettings,
Expand Down

0 comments on commit 783702e

Please sign in to comment.