Skip to content

Commit ee9e1c3

Browse files
committed
[processing] add missed spatial index constructor (follow up 700441e)
1 parent 1a51a75 commit ee9e1c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/plugins/processing/tools/vector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def spatialindex(layer):
225225
request.setSubsetOfAttributes([])
226226
if ProcessingConfig.getSetting(ProcessingConfig.USE_SELECTED) \
227227
and layer.selectedFeatureCount() > 0:
228-
idx = layer.selectedFeaturesIterator(request)
228+
idx = QgsSpatialIndex(layer.selectedFeaturesIterator(request))
229229
else:
230230
idx = QgsSpatialIndex(layer.getFeatures(request))
231231
return idx

0 commit comments

Comments
 (0)