Skip to content

Commit 8de56bf

Browse files
committedOct 21, 2016
[processing] correct check for empty extent values. MAde extent params optional by default, to accept auto extent
1 parent 2efb544 commit 8de56bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎python/plugins/processing/core/parameters.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,12 +193,12 @@ class ParameterExtent(Parameter):
193193

194194
USE_MIN_COVERING_EXTENT = 'USE_MIN_COVERING_EXTENT'
195195

196-
def __init__(self, name='', description='', default=None, optional=False):
196+
def __init__(self, name='', description='', default=None, optional=True):
197197
Parameter.__init__(self, name, description, default, optional)
198198
# The value is a string in the form "xmin, xmax, ymin, ymax"
199199

200200
def setValue(self, text):
201-
if text is None:
201+
if not text:
202202
if not self.optional:
203203
return False
204204
self.value = None

0 commit comments

Comments
 (0)
Please sign in to comment.