[processing] fixed issue with min covering extent when layers are passed as layer names

#fixes 13441
This commit is contained in:
volaya 2015-09-29 17:24:06 +02:00
parent dee3babbf6
commit 1c69373af1

View File

@ -109,7 +109,7 @@ class ExtentSelectionPanel(BASE, WIDGET):
QgsVectorLayer)): QgsVectorLayer)):
layer = param.value layer = param.value
else: else:
layer = dataobjects.getObjectFromUri(param.value) layer = dataobjects.getObject(param.value)
if layer: if layer:
found = True found = True
self.addToRegion(layer, first) self.addToRegion(layer, first)
@ -117,7 +117,7 @@ class ExtentSelectionPanel(BASE, WIDGET):
elif isinstance(param, ParameterMultipleInput): elif isinstance(param, ParameterMultipleInput):
layers = param.value.split(';') layers = param.value.split(';')
for layername in layers: for layername in layers:
layer = dataobjects.getObjectFromUri(layername, first) layer = dataobjects.getObject(layername, first)
if layer: if layer:
found = True found = True
self.addToRegion(layer, first) self.addToRegion(layer, first)