[processing] use only selected features for spatial index

fixes #15584
This commit is contained in:
volaya 2016-09-20 14:33:09 +02:00 committed by Alexander Bruy
parent 128da3002a
commit 90db246488

View File

@ -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