Skip to content
Permalink
Browse files

[ftools] fixes #8988

  • Loading branch information
slarosa committed Nov 3, 2013
1 parent 1deaeb0 commit fb4409b24e72010e8f6771601691609d300d64b9
Showing with 4 additions and 4 deletions.
  1. +4 −4 python/plugins/fTools/tools/doGeometry.py
@@ -567,11 +567,11 @@ def export_geometry_info( self ):
if self.writeShape:
outFeat.setGeometry( inGeom )
atMap = inFeat.attributes()
maxIndex = index1 if index1>index2 else index2
if maxIndex>len(atMap):
atMap += [ "" ] * ( index2+1 - len(atMap) )
maxIndex = index1 if index1 > index2 else index2
if maxIndex >= len(atMap):
atMap += [ "" ] * ( index2+1 - len(atMap) )
atMap[ index1 ] = attr1
if index1!=index2:
if index1 != index2:
atMap[ index2 ] = attr2
outFeat.setAttributes( atMap )
writer.addFeature( outFeat )

0 comments on commit fb4409b

Please sign in to comment.
You can’t perform that action at this time.