Skip to content
Permalink
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 with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/processing/core/parameters.py
@@ -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

0 comments on commit 8de56bf

Please sign in to comment.
You can’t perform that action at this time.