Skip to content
Permalink
Browse files

Remove project scope

  • Loading branch information
m-kuhn committed Aug 25, 2018
1 parent 157c7dc commit a97426f14bc148e1d7b75011d685c601dadc2a4b
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/core/qgsogcutils.cpp
@@ -22,7 +22,6 @@
#include "qgswkbptr.h"
#include "qgscoordinatereferencesystem.h"
#include "qgsrectangle.h"
#include "qgsproject.h"

#include <QColor>
#include <QStringList>
@@ -2162,7 +2161,7 @@ QDomElement QgsOgcUtils::expressionToOgcFilter( const QgsExpression &expression,
QgsExpression exp = expression;

QgsExpressionContext context;
context << QgsExpressionContextUtils::globalScope() << QgsExpressionContextUtils::projectScope( QgsProject::instance() );
context << QgsExpressionContextUtils::globalScope();
QgsOgcUtilsExprToFilter utils( doc, gmlVersion, filterVersion, geometryName, srsName, honourAxisOrientation, invertAxisOrientation );
QDomElement exprRootElem = utils.expressionNodeToOgcFilter( exp.rootNode(), &exp, &context );
if ( errorMessage )
@@ -2198,7 +2197,7 @@ QDomElement QgsOgcUtils::expressionToOgcExpression( const QgsExpression &express
QString *errorMessage )
{
QgsExpressionContext context;
context << QgsExpressionContextUtils::globalScope() << QgsExpressionContextUtils::projectScope( QgsProject::instance() );
context << QgsExpressionContextUtils::globalScope();

QgsExpression exp = expression;

0 comments on commit a97426f

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