Skip to content

Commit a86622b

Browse files
committedFeb 19, 2013
fix #7179
1 parent 99dfce1 commit a86622b

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed
 

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -392,12 +392,13 @@ def single_to_multi( self ):
392392
multi_feature.extend( feature_list )
393393
nElement += 1
394394
self.emit( SIGNAL( "runStatus( PyQt_PyObject )" ), nElement )
395-
outFeat.setAttributes( atts )
396-
outGeom = QgsGeometry( self.convertGeometry( multi_feature, vType ) )
397-
if not outGeom.isGeosValid():
398-
allValid = "valid_error"
399-
outFeat.setGeometry( outGeom )
400-
writer.addFeature( outFeat )
395+
if not first:
396+
outFeat.setAttributes( atts )
397+
outGeom = QgsGeometry( self.convertGeometry( multi_feature, vType ) )
398+
if not outGeom.isGeosValid():
399+
allValid = "valid_error"
400+
outFeat.setGeometry( outGeom )
401+
writer.addFeature( outFeat )
401402
del writer
402403
else:
403404
return "attr_error"

0 commit comments

Comments
 (0)
Please sign in to comment.