We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1deaeb0 commit fb4409bCopy full SHA for fb4409b
python/plugins/fTools/tools/doGeometry.py
@@ -567,11 +567,11 @@ def export_geometry_info( self ):
567
if self.writeShape:
568
outFeat.setGeometry( inGeom )
569
atMap = inFeat.attributes()
570
- maxIndex = index1 if index1>index2 else index2
571
- if maxIndex>len(atMap):
572
- atMap += [ "" ] * ( index2+1 - len(atMap) )
+ maxIndex = index1 if index1 > index2 else index2
+ if maxIndex >= len(atMap):
+ atMap += [ "" ] * ( index2+1 - len(atMap) )
573
atMap[ index1 ] = attr1
574
- if index1!=index2:
+ if index1 != index2:
575
atMap[ index2 ] = attr2
576
outFeat.setAttributes( atMap )
577
writer.addFeature( outFeat )
0 commit comments