Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 8d87f35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/qgis/SelectByLocation.py
Expand Up @@ -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())
Expand Down

0 comments on commit 8d87f35

Please sign in to comment.