Skip to content

Commit

Permalink
Merge pull request #1026 from anitagraser/working
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed Dec 15, 2013
2 parents 27bea19 + d132451 commit bb1380e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions python/plugins/processing/algs/JoinAttributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand All @@ -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 bb1380e

Please sign in to comment.