Skip to content

Commit

Permalink
[ftools] fixes #8988
Browse files Browse the repository at this point in the history
  • Loading branch information
slarosa committed Nov 3, 2013
1 parent 1deaeb0 commit fb4409b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/plugins/fTools/tools/doGeometry.py
Expand Up @@ -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 )
Expand Down

0 comments on commit fb4409b

Please sign in to comment.