Skip to content

Commit 8a50ddb

Browse files
committedJul 14, 2013
Fix #6063
1 parent f8e2cac commit 8a50ddb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed
 

‎python/plugins/fTools/tools/doGeoprocessing.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -468,16 +468,15 @@ def convex_hull(self, useField ):
468468
if useField:
469469
importedField = vproviderA.fields().at( self.myParam )
470470
importedFieldName = importedField.name( )
471-
outFeatFields.append( importedField )
471+
#
472+
outFeatFields.extend( vproviderA.fields() )
472473
# creating area and perimeter fields
473474
areaField = QgsField("area", QVariant.Double)
474475
perimField = QgsField("perim", QVariant.Double)
475476
# appending fields
476477
outFeatFields.append(areaField)
477478
outFeatFields.append(perimField)
478479
#
479-
outFeatFields.extend( vproviderA.fields() )
480-
#
481480
writer = QgsVectorFileWriter( self.myName, self.myEncoding, outFeatFields,
482481
QGis.WKBPolygon, vproviderA.crs() )
483482
if writer.hasError():

0 commit comments

Comments
 (0)
Please sign in to comment.