Skip to content

Commit

Permalink
[processing] Fix some regressions following algorithm refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed May 1, 2017
1 parent 636a37f commit 79d79d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/processing/core/parameters.py
Expand Up @@ -904,9 +904,9 @@ def evaluate(self, alg):

def _layerVariables(self, element, alg=None):
variables = {}
layer = getObject(element.value)
layer = dataobjects.getLayerFromString(element.value)
if layer is not None:
name = element.name if alg is None else "%s_%s" % (alg.name(), element.name)
name = element.name if alg is None else "%s_%s" % (alg.name, element.name)
variables['@%s_minx' % name] = layer.extent().xMinimum()
variables['@%s_miny' % name] = layer.extent().yMinimum()
variables['@%s_maxx' % name] = layer.extent().yMaximum()
Expand Down

0 comments on commit 79d79d6

Please sign in to comment.