Skip to content

Commit

Permalink
[processing] add missed spatial index constructor (follow up 700441e)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Oct 19, 2016
1 parent 1a51a75 commit ee9e1c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/tools/vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ee9e1c3

Please sign in to comment.