Skip to content

Commit 938f261

Browse files
committed
[processing] fix map layer combo box layer reference
1 parent 09195fb commit 938f261

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/plugins/processing/gui/wrappers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ def value(self):
763763
if self.dialogType == DIALOG_STANDARD:
764764
try:
765765
layer = self.combo.currentLayer()
766-
if layer:
766+
if layer is not None:
767767
return layer
768768
else:
769769
return self.combo.currentText()
@@ -1226,7 +1226,7 @@ def value(self):
12261226
if self.dialogType == DIALOG_STANDARD:
12271227
try:
12281228
layer = self.combo.currentLayer()
1229-
if layer:
1229+
if layer is not None:
12301230
return layer
12311231
else:
12321232
return self.combo.currentText()

0 commit comments

Comments
 (0)