Skip to content

Commit

Permalink
Merge pull request #45744 from agiudiceandrea/fix-overaly-filter
Browse files Browse the repository at this point in the history
[expressions] Fix overlay_* functions caching when filter changes
  • Loading branch information
m-kuhn committed Oct 31, 2021
2 parents d206bc8 + ae84e43 commit 768ccc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/expression/qgsexpressionfunction.cpp
Expand Up @@ -6554,7 +6554,7 @@ static QVariant executeGeomOverlay( const QVariantList &values, const QgsExpress
intDomain.grow( bboxGrow ); //optional parameter to enlarge boundary context for touches and equals methods
}

const QString cacheBase { QStringLiteral( "%1:%2" ).arg( targetLayer->id(), subExpString ) };
const QString cacheBase { QStringLiteral( "%1:%2:%3" ).arg( targetLayer->id(), subExpString, filterString ) };

// Cache (a local spatial index) is always enabled for nearest function (as we need QgsSpatialIndex::nearestNeighbor)
// Otherwise, it can be toggled by the user
Expand Down

0 comments on commit 768ccc6

Please sign in to comment.