Skip to content

Commit

Permalink
[processing] add missed spatial index constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Oct 19, 2016
1 parent 0d09ad1 commit f289ef3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/tools/vector.py
Expand Up @@ -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
Expand Down

0 comments on commit f289ef3

Please sign in to comment.