From 1c69373af1dbdbdfcae4ef0dcb518a64ae616c86 Mon Sep 17 00:00:00 2001 From: volaya Date: Tue, 29 Sep 2015 17:24:06 +0200 Subject: [PATCH] [processing] fixed issue with min covering extent when layers are passed as layer names #fixes 13441 --- python/plugins/processing/gui/ExtentSelectionPanel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/plugins/processing/gui/ExtentSelectionPanel.py b/python/plugins/processing/gui/ExtentSelectionPanel.py index a619aea91b7..edc325a014a 100644 --- a/python/plugins/processing/gui/ExtentSelectionPanel.py +++ b/python/plugins/processing/gui/ExtentSelectionPanel.py @@ -109,7 +109,7 @@ class ExtentSelectionPanel(BASE, WIDGET): QgsVectorLayer)): layer = param.value else: - layer = dataobjects.getObjectFromUri(param.value) + layer = dataobjects.getObject(param.value) if layer: found = True self.addToRegion(layer, first) @@ -117,7 +117,7 @@ class ExtentSelectionPanel(BASE, WIDGET): elif isinstance(param, ParameterMultipleInput): layers = param.value.split(';') for layername in layers: - layer = dataobjects.getObjectFromUri(layername, first) + layer = dataobjects.getObject(layername, first) if layer: found = True self.addToRegion(layer, first)