Skip to content
Permalink
Browse files
minor script fixes
  • Loading branch information
alexbruy committed Mar 16, 2017
1 parent 394b4f1 commit a70e73cd74a619df2af23080aec5e07f837c5dd1
Showing with 1 addition and 3 deletions.
  1. +1 −3 python/plugins/processing/tests/testdata/scripts/centroids.py
@@ -21,11 +21,9 @@

for count, f in enumerate(features):
outputFeature = f
if f.geometry():
if f.hasGeometry():
outputGeometry = f.geometry().centroid()
outputFeature.setGeometry(outputGeometry)

writer.addFeature(outputFeature)
feedback.setProgress(int(count * total))

del writer

0 comments on commit a70e73c

Please sign in to comment.