Skip to content

Commit

Permalink
Revert "[processing] correct check for empty extent values. MAde exte…
Browse files Browse the repository at this point in the history
…nt params optional by default, to accept auto extent"

This reverts commit 8de56bf.
  • Loading branch information
volaya committed Oct 21, 2016
1 parent 8de56bf commit fd26409
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/processing/core/parameters.py
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=True):
def __init__(self, name='', description='', default=None, optional=False):
Parameter.__init__(self, name, description, default, optional)
# The value is a string in the form "xmin, xmax, ymin, ymax"

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

0 comments on commit fd26409

Please sign in to comment.