Skip to content

Commit

Permalink
[processing] fix ExtentSelectionPanel's getValue()
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Nov 15, 2016
1 parent d237e27 commit c87839f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/plugins/processing/gui/AlgorithmDialog.py
Expand Up @@ -211,7 +211,7 @@ def accept(self):
self.resetGUI()
except AlgorithmDialogBase.InvalidParameterValue as e:
try:
self.buttonBox.accepted.connect(lambda:
self.buttonBox.accepted.connect(lambda e=e:
e.widget.setPalette(QPalette()))
palette = e.widget.palette()
palette.setColor(QPalette.Base, QColor(255, 255, 0))
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/gui/ExtentSelectionPanel.py
Expand Up @@ -153,7 +153,7 @@ def setValueFromRect(self, r):
self.dialog.activateWindow()

def getValue(self):
if str(self.leText.text()).strip() == '':
if str(self.leText.text()).strip() != '':
return str(self.leText.text())
else:
return None
Expand Down

0 comments on commit c87839f

Please sign in to comment.