Skip to content

Commit

Permalink
Merge pull request #2034 from Gustry/fix-lines-inter
Browse files Browse the repository at this point in the history
[processing] Set the parameter table field optional in "Line intersections" algo
  • Loading branch information
volaya committed May 20, 2015
2 parents f782e77 + 3e39783 commit 86d4a4d
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions python/plugins/processing/algs/qgis/LinesIntersection.py
Expand Up @@ -50,10 +50,16 @@ def defineCharacteristics(self):
self.tr('Input layer'), [ParameterVector.VECTOR_TYPE_LINE]))
self.addParameter(ParameterVector(self.INPUT_B,
self.tr('Intersect layer'), [ParameterVector.VECTOR_TYPE_LINE]))
self.addParameter(ParameterTableField(self.FIELD_A,
self.tr('Input unique ID field'), self.INPUT_A))
self.addParameter(ParameterTableField(self.FIELD_B,
self.tr('Intersect unique ID field'), self.INPUT_B))
self.addParameter(ParameterTableField(
self.FIELD_A,
self.tr('Input unique ID field'),
self.INPUT_A,
optional=True))
self.addParameter(ParameterTableField(
self.FIELD_B,
self.tr('Intersect unique ID field'),
self.INPUT_B,
optional=True))

self.addOutput(OutputVector(self.OUTPUT, self.tr('Output layer')))

Expand Down

0 comments on commit 86d4a4d

Please sign in to comment.