Skip to content

Commit

Permalink
[processing] use only selected features for spatial index
Browse files Browse the repository at this point in the history
fixes #15584
  • Loading branch information
volaya committed Oct 4, 2016
1 parent 53204c8 commit 7370ade
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 @@ -200,7 +200,7 @@ def testForUniqueness(fieldList1, fieldList2):
def spatialindex(layer):
"""Creates a spatial index for the passed vector layer.
"""
idx = QgsSpatialIndex(layer.getFeatures())
idx = QgsSpatialIndex(features(layer))
return idx


Expand Down

0 comments on commit 7370ade

Please sign in to comment.