Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[refFunctions] honor limit parameter on disjoint results
  • Loading branch information
olivierdalang committed Sep 8, 2020
1 parent 4626aa2 commit e3150d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/expression/qgsexpressionfunction.cpp
Expand Up @@ -5903,7 +5903,9 @@ static QVariant executeGeomOverlay( const QVariantList &values, const QgsExpress
// for disjoint condition returns the results for cached layers not intersected feats
QVariantList disjoint_results;
QgsFeature feat2;
QgsFeatureIterator fi = targetLayer->getFeatures();
QgsFeatureRequest request2;
request2.setLimit( limit );
QgsFeatureIterator fi = targetLayer->getFeatures( request2 );
while ( fi.nextFeature( feat2 ) )
{
if ( !results.contains( feat2.id() ) )
Expand Down

0 comments on commit e3150d0

Please sign in to comment.