Skip to content

Commit 40942fa

Browse files
committed
[processing] fix old API calls in Extract by location tool (fix #9603)
1 parent ae2a3a8 commit 40942fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/plugins/processing/algs/ftools/ExtractByLocation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def processAlgorithm(self, progress):
7474
progress.setPercentage(int(current * total))
7575

7676
output = self.getOutputFromName(self.OUTPUT)
77-
writer = output.getVectorWriter(layer.fields(),
77+
writer = output.getVectorWriter(layer.layer.pendingFields().toList(),
7878
layer.geometryType(), layer.crs())
7979

8080
for (i, feat) in enumerate(features):

0 commit comments

Comments
 (0)