Skip to content

Commit

Permalink
set the parameter table field optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed May 7, 2015
1 parent fd7375e commit 3e39783
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 3e39783

Please sign in to comment.