Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Processing] Manage default value for parameter
To finalize commit 3472ac8 update processing to well manage default value
  • Loading branch information
rldhont committed Dec 24, 2015
1 parent 2415e37 commit 7754f17
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 70 deletions.
2 changes: 1 addition & 1 deletion python/plugins/processing/core/Processing.py
Expand Up @@ -299,7 +299,7 @@ def runAlgorithm(algOrName, onFinish, *args, **kwargs):
# fill any missing parameters with default values if allowed
for param in alg.parameters:
if param.name not in setParams:
if not param.setValue(None):
if not param.setDefaultValue():
print ('Error: Missing parameter value for parameter %s.' % (param.name))
QgsMessageLog.logMessage(Processing.tr('Error: Missing parameter value for parameter {0}.').format(param.name), Processing.tr("Processing"))
ProcessingLog.addToLog(
Expand Down

0 comments on commit 7754f17

Please sign in to comment.