Skip to content

Commit

Permalink
[processing] fixed check for empty param for strings
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed Oct 17, 2016
1 parent 904b62b commit 61a10df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/core/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ def __init__(self, name='', description='', default=None, multiline=False,
self.evaluateExpressions = parseBool(evaluateExpressions)

def setValue(self, obj):
if obj is None:
if not bool(obj):

This comment has been minimized.

Copy link
@gacarrillor

gacarrillor Oct 18, 2016

Member

@volaya, I think this has affected OGR algs. Try for instance "Convert format". If you don't enter optional parameters, you'll get None into the OGR command, making it impossible to run. Could you please confirm and if so, fix it (revert)?

This comment has been minimized.

Copy link
@strk

strk Oct 18, 2016

Contributor
if not self.optional:
return False
self.value = None
Expand Down

0 comments on commit 61a10df

Please sign in to comment.