Skip to content

Commit 8502d11

Browse files
committed
[processing] remove selection before running Select by location algorithm (fix #10873)
1 parent 580dd13 commit 8502d11

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

python/plugins/processing/algs/qgis/ftools/SelectByLocation.py

+1
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ def processAlgorithm(self, progress):
8080
selectLayer = dataobjects.getObjectFromUri(filename)
8181

8282
oldSelection = set(inputLayer.selectedFeaturesIds())
83+
inputLayer.removeSelection()
8384
index = vector.spatialindex(inputLayer)
8485

8586
def _points_op(geomA,geomB):

0 commit comments

Comments
 (0)