File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
python/plugins/fTools/tools Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -566,19 +566,19 @@ def export_geometry_info( self ):
566
566
if self .writeShape :
567
567
outFeat .setGeometry ( inGeom )
568
568
atMap = inFeat .attributes ()
569
- maxIndex = index1 if index1 > index2 else index2
570
- if maxIndex > len (atMap ):
571
- atMap += [ QVariant () ] * ( index2 + 1 - len (atMap ) )
572
- atMap [ index1 ] = attr1
573
- if index1 != index2 :
574
- atMap [ index2 ] = attr2
569
+ maxIndex = index1 if index1 > index2 else index2
570
+ if maxIndex > len (atMap ):
571
+ atMap += [ QVariant () ] * ( index2 + 1 - len (atMap ) )
572
+ atMap [ index1 ] = attr1
573
+ if index1 != index2 :
574
+ atMap [ index2 ] = attr2
575
575
outFeat .setAttributes ( atMap )
576
576
writer .addFeature ( outFeat )
577
577
else :
578
578
changeMap = {}
579
579
changeMap [ inFeat .id () ] = {}
580
580
changeMap [ inFeat .id () ][ index1 ] = QVariant ( attr1 )
581
- if index1 != index2 :
581
+ if index1 != index2 :
582
582
changeMap [ inFeat .id () ][ index2 ] = QVariant ( attr2 )
583
583
vprovider .changeAttributeValues ( changeMap )
584
584
You can’t perform that action at this time.
0 commit comments