Skip to content

Commit

Permalink
[Processing] Fix exception when using extent helper function.
Browse files Browse the repository at this point in the history
  • Loading branch information
radosuav authored and nyalldawson committed Dec 10, 2018
1 parent 8b28b63 commit f2710fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/tools/dataobjects.py
Expand Up @@ -129,7 +129,7 @@ def getTables(sorting=True):
def extent(layers):
first = True
for layer in layers:
if not isinstance(layer, (QgsMapLayer.QgsRasterLayer, QgsMapLayer.QgsVectorLayer)):
if not isinstance(layer, (QgsRasterLayer, QgsVectorLayer)):
layer = getObjectFromUri(layer)
if layer is None:
continue
Expand Down

0 comments on commit f2710fd

Please sign in to comment.