Skip to content

Commit

Permalink
Fix Union tool to produce correct attribute table (fix #4567)
Browse files Browse the repository at this point in the history
  • Loading branch information
VKa authored and alexbruy committed Jan 11, 2012
1 parent 89d22a6 commit 0498c95
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/plugins/fTools/tools/doGeoprocessing.py
Expand Up @@ -1202,7 +1202,6 @@ def union( self ):
else:
for id in intersects:
vproviderA.featureAtId( int( id ), inFeatB , True, allAttrsA )
atMapB = inFeatB.attributeMap()
tmpGeom = QgsGeometry( inFeatB.geometry() )

try:
Expand All @@ -1222,7 +1221,7 @@ def union( self ):
if add:
try:
outFeat.setGeometry( diff_geom )
outFeat.setAttributeMap( atMapB )
outFeat.setAttributeMap( atMap )
writer.addFeature( outFeat )
except Exception, err:
FEATURE_EXCEPT = False
Expand Down

0 comments on commit 0498c95

Please sign in to comment.