Skip to content

Commit e9dac8e

Browse files
committed
Fixing field name used for target field in ftools DistanceMatrix algorithm
1 parent c3bd82a commit e9dac8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/plugins/processing/algs/qgis/ftools/PointDistance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def linearMatrix(self, inLayer, inField, targetLayer, targetField,
113113
index = vector.spatialindex(targetLayer)
114114

115115
inIdx = inLayer.fieldNameIndex(inField)
116-
outIdx = targetLayer.fieldNameIndex(inField)
116+
outIdx = targetLayer.fieldNameIndex(targetField)
117117

118118
outFeat = QgsFeature()
119119
inGeom = QgsGeometry()

0 commit comments

Comments
 (0)