Skip to content

Commit 90db246

Browse files
volayaalexbruy
authored andcommitted
[processing] use only selected features for spatial index
fixes #15584
1 parent 128da30 commit 90db246

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/plugins/processing/tools/vector.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def testForUniqueness(fieldList1, fieldList2):
221221
def spatialindex(layer):
222222
"""Creates a spatial index for the passed vector layer.
223223
"""
224-
idx = QgsSpatialIndex(layer.getFeatures())
224+
idx = QgsSpatialIndex(features(layer))
225225
return idx
226226

227227

0 commit comments

Comments
 (0)