Skip to content

Commit

Permalink
[processing] fix old API calls in Extract by location tool (fix #9603)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Mar 24, 2014
1 parent ae2a3a8 commit 40942fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/ftools/ExtractByLocation.py
Expand Up @@ -74,7 +74,7 @@ def processAlgorithm(self, progress):
progress.setPercentage(int(current * total))

output = self.getOutputFromName(self.OUTPUT)
writer = output.getVectorWriter(layer.fields(),
writer = output.getVectorWriter(layer.layer.pendingFields().toList(),
layer.geometryType(), layer.crs())

for (i, feat) in enumerate(features):
Expand Down

0 comments on commit 40942fa

Please sign in to comment.