Skip to content
Permalink
Browse files

[processing] add missed spatial index constructor

  • Loading branch information
alexbruy committed Oct 19, 2016
1 parent 0d09ad1 commit f289ef32ca30c9cdbdbc31cb94f338b744fd9e0b
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/processing/tools/vector.py
@@ -206,7 +206,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 f289ef3

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