Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 59ba3da

Browse files
committedJun 16, 2019
[processing] Fix missing default value for Select by Expression
Fixes #30218
1 parent 853abe0 commit 59ba3da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎python/plugins/processing/algs/qgis/SelectByExpression.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def initAlgorithm(self, config=None):
6666
self.addParameter(QgsProcessingParameterExpression(self.EXPRESSION,
6767
self.tr('Expression'), parentLayerParameterName=self.INPUT))
6868
self.addParameter(QgsProcessingParameterEnum(self.METHOD,
69-
self.tr('Modify current selection by'), self.methods, 0))
69+
self.tr('Modify current selection by'), self.methods, defaultValue=0))
7070

7171
self.addOutput(QgsProcessingOutputVectorLayer(self.OUTPUT, self.tr('Selected (attribute)')))
7272

0 commit comments

Comments
 (0)
Please sign in to comment.