Skip to content
Browse files
[processing] correct check for empty extent values. MAde extent param…
…s optional by default, to accept auto extent
  • Loading branch information
volaya committed Oct 21, 2016
1 parent 2efb544 commit 8de56bf01a38fd75574a3a5bac1bcd52b0d88c55
Showing 1 changed file with 2 additions and 2 deletions.
@@ -193,12 +193,12 @@ class ParameterExtent(Parameter):


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

0 comments on commit 8de56bf

Please sign in to comment.