Skip to content

Commit fb4409b

Browse files
committed
[ftools] fixes #8988
1 parent 1deaeb0 commit fb4409b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

python/plugins/fTools/tools/doGeometry.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -567,11 +567,11 @@ def export_geometry_info( self ):
567567
if self.writeShape:
568568
outFeat.setGeometry( inGeom )
569569
atMap = inFeat.attributes()
570-
maxIndex = index1 if index1>index2 else index2
571-
if maxIndex>len(atMap):
572-
atMap += [ "" ] * ( index2+1 - len(atMap) )
570+
maxIndex = index1 if index1 > index2 else index2
571+
if maxIndex >= len(atMap):
572+
atMap += [ "" ] * ( index2+1 - len(atMap) )
573573
atMap[ index1 ] = attr1
574-
if index1!=index2:
574+
if index1 != index2:
575575
atMap[ index2 ] = attr2
576576
outFeat.setAttributes( atMap )
577577
writer.addFeature( outFeat )

0 commit comments

Comments
 (0)