Skip to content
Permalink
Browse files

attempt to fix http://hub.qgis.org/issues/9184

  • Loading branch information
anitagraser committed Dec 13, 2013
1 parent 402b397 commit d13245190d46f43ad0438b5c4a913f7d87b0bdec
Showing with 1 addition and 5 deletions.
  1. +1 −5 python/plugins/processing/algs/JoinAttributes.py
@@ -75,9 +75,7 @@ def processAlgorithm(self, progress):
joinField2Index = layer2.fieldNameIndex(field2)

# Output
outFields = []
outFields.extend(provider.fields())
outFields.extend(provider2.fields())
outFields = vector.combineVectorFields(layer,layer2)

writer = output.getVectorWriter(outFields, provider.geometryType(),
layer.crs())
@@ -98,12 +96,10 @@ def processAlgorithm(self, progress):
attrs2 = inFeat2.attributes()
joinValue2 = attrs2[joinField2Index]
if joinValue1 == joinValue2:

# Create the new feature
outFeat.setGeometry(inGeom)
attrs.extend(attrs2)
break
outFeat.setAttributes(attrs)
writer.addFeature(outFeat)

del writer

0 comments on commit d132451

Please sign in to comment.
You can’t perform that action at this time.