mirror of
https://github.com/qgis/QGIS.git
synced 2025-11-28 00:06:23 -05:00
[processing] fixed issue with min covering extent when layers are passed as layer names
#fixes 13441
This commit is contained in:
parent
dee3babbf6
commit
1c69373af1
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user