Skip to content

Commit

Permalink
Remove project scope
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Aug 25, 2018
1 parent 157c7dc commit a97426f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/core/qgsogcutils.cpp
Expand Up @@ -22,7 +22,6 @@
#include "qgswkbptr.h"
#include "qgscoordinatereferencesystem.h"
#include "qgsrectangle.h"
#include "qgsproject.h"

#include <QColor>
#include <QStringList>
Expand Down Expand Up @@ -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 )
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit a97426f

Please sign in to comment.