Skip to content
Permalink
Browse files

Keep mapSettings scope

  • Loading branch information
pblottiere committed Apr 13, 2018
1 parent e8ce121 commit 783702e95c9396d80363ff4708397b1e880b9909
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/server/services/wms/qgswmsrenderer.cpp
@@ -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,

0 comments on commit 783702e

Please sign in to comment.
You can’t perform that action at this time.