Skip to content

Commit

Permalink
Fix incorrect layer source from widget wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jun 26, 2017
1 parent 11d3582 commit 94619d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/gui/wrappers.py
Expand Up @@ -871,7 +871,7 @@ def value(self):
use_selected_features = self.use_selection_checkbox.isChecked()
try:
layer = self.combo.currentLayer()
if layer:
if layer is not None:
return QgsProcessingFeatureSourceDefinition(layer.id(), use_selected_features)
else:
if self.combo.currentText():
Expand Down

0 comments on commit 94619d0

Please sign in to comment.