Skip to content

Commit

Permalink
Update src/core/qgsogcutils.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
agiudiceandrea authored Jan 10, 2025
1 parent 03f5c38 commit b7004dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsogcutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2318,7 +2318,7 @@ static bool isGeometryColumn( const QgsExpressionNode *node )

const QgsExpressionNodeFunction *fn = static_cast<const QgsExpressionNodeFunction *>( node );
QgsExpressionFunction *fd = QgsExpression::Functions()[fn->fnIndex()];
return fd->name() == QLatin1String( "$geometry" ) || fd->name() == QLatin1String( "@geometry" );
return fd->name() == QLatin1String( "$geometry" ) || fn->referencedVariables().contains( QLatin1String( "geometry" ) );
}

static QgsGeometry geometryFromConstExpr( const QgsExpressionNode *node )
Expand Down

0 comments on commit b7004dd

Please sign in to comment.