[processing] fix old API calls in Extract by location tool (fix #9603)

This commit is contained in:
Alexander Bruy 2014-03-24 19:59:06 +02:00
parent ae2a3a8dcc
commit 40942fa7d5

View File

@ -74,7 +74,7 @@ class ExtractByLocation(GeoAlgorithm):
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):