Skip to content
Permalink
Browse files

[refFunctions] honor limit parameter on disjoint results

  • Loading branch information
olivierdalang committed Sep 8, 2020
1 parent 4626aa2 commit e3150d041d9e958627179f105aeb724c83cbda1b
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/core/expression/qgsexpressionfunction.cpp
@@ -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() ) )

0 comments on commit e3150d0

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