From fc8d07ee246d9679e1cd98c5bbc2e4723cb5f765 Mon Sep 17 00:00:00 2001 From: Martin Dobias Date: Thu, 12 Jun 2014 16:20:28 +0700 Subject: [PATCH] Fix #10475 (symmetrical difference behaves like difference) --- python/plugins/fTools/tools/doGeoprocessing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/plugins/fTools/tools/doGeoprocessing.py b/python/plugins/fTools/tools/doGeoprocessing.py index 7b6f91fe9d4..2b0819fad53 100644 --- a/python/plugins/fTools/tools/doGeoprocessing.py +++ b/python/plugins/fTools/tools/doGeoprocessing.py @@ -1329,7 +1329,7 @@ class geoprocessingThread( QThread ): geom = QgsGeometry( inFeatA.geometry() ) diff_geom = QgsGeometry( geom ) atMap = inFeatA.attributes() - atMap = dict( zip( range( length, length + len( atMap ) ), atMap ) ) + atMap = [ NULL ] * length + atMap intersects = indexB.intersects( geom.boundingBox() ) for id in intersects: vproviderA.getFeatures( QgsFeatureRequest().setFilterFid( int( id ) ) ).nextFeature( inFeatB )