We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a51a75 commit ee9e1c3Copy full SHA for ee9e1c3
python/plugins/processing/tools/vector.py
@@ -225,7 +225,7 @@ def spatialindex(layer):
225
request.setSubsetOfAttributes([])
226
if ProcessingConfig.getSetting(ProcessingConfig.USE_SELECTED) \
227
and layer.selectedFeatureCount() > 0:
228
- idx = layer.selectedFeaturesIterator(request)
+ idx = QgsSpatialIndex(layer.selectedFeaturesIterator(request))
229
else:
230
idx = QgsSpatialIndex(layer.getFeatures(request))
231
return idx
0 commit comments