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 authored and alexbruy committed Oct 18, 2016
1 parent 128da30 commit 90db246
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/tools/vector.py
Expand Up @@ -221,7 +221,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 90db246

Please sign in to comment.