Skip to content

Commit

Permalink
[processing] correct check for empty extent values. MAde extent param…
Browse files Browse the repository at this point in the history
…s optional by default, to accept auto extent
  • Loading branch information
volaya committed Oct 21, 2016
1 parent 2efb544 commit 8de56bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/processing/core/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,12 @@ class ParameterExtent(Parameter):

USE_MIN_COVERING_EXTENT = 'USE_MIN_COVERING_EXTENT'

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

def setValue(self, text):
if text is None:
if not text:
if not self.optional:
return False
self.value = None
Expand Down

0 comments on commit 8de56bf

Please sign in to comment.