Skip to content
Permalink
Browse files

Fixed wrong output layer

The script wrongly returned the path to the second layer rather than the first layer which the selection actually is applied to.
  • Loading branch information
anitagraser committed Feb 22, 2015
1 parent d8b715a commit 8d87f353041a410fc2decdea7bd488f3a12888e7
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/processing/algs/qgis/SelectByLocation.py
@@ -67,8 +67,8 @@ def processAlgorithm(self, progress):
filename = self.getParameterValue(self.INPUT)
inputLayer = dataobjects.getObjectFromUri(filename)
method = self.getParameterValue(self.METHOD)
filename = self.getParameterValue(self.INTERSECT)
selectLayer = dataobjects.getObjectFromUri(filename)
filename2 = self.getParameterValue(self.INTERSECT)
selectLayer = dataobjects.getObjectFromUri(filename2)
predicates = self.getParameterValue(self.PREDICATE)

oldSelection = set(inputLayer.selectedFeaturesIds())

0 comments on commit 8d87f35

Please sign in to comment.
You can’t perform that action at this time.