Skip to content
Permalink
Browse files

[processing] add missed spatial index constructor (follow up 700441e)

  • Loading branch information
alexbruy committed Oct 19, 2016
1 parent 1a51a75 commit ee9e1c3328379b83ed457e2281f0a94518b7a6f4
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/processing/tools/vector.py
@@ -225,7 +225,7 @@ def spatialindex(layer):
request.setSubsetOfAttributes([])
if ProcessingConfig.getSetting(ProcessingConfig.USE_SELECTED) \
and layer.selectedFeatureCount() > 0:
idx = layer.selectedFeaturesIterator(request)
idx = QgsSpatialIndex(layer.selectedFeaturesIterator(request))
else:
idx = QgsSpatialIndex(layer.getFeatures(request))
return idx

0 comments on commit ee9e1c3

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