diff --git a/python/plugins/processing/gui/wrappers.py b/python/plugins/processing/gui/wrappers.py index d78f7bebb16..05b31c3cd5c 100644 --- a/python/plugins/processing/gui/wrappers.py +++ b/python/plugins/processing/gui/wrappers.py @@ -763,7 +763,7 @@ class MapLayerWidgetWrapper(WidgetWrapper): if self.dialogType == DIALOG_STANDARD: try: layer = self.combo.currentLayer() - if layer: + if layer is not None: return layer else: return self.combo.currentText() @@ -1226,7 +1226,7 @@ class VectorLayerWidgetWrapper(WidgetWrapper): if self.dialogType == DIALOG_STANDARD: try: layer = self.combo.currentLayer() - if layer: + if layer is not None: return layer else: return self.combo.currentText()