Skip to content

Commit

Permalink
Merge pull request #3761 from nirvn/processing_parameterextent_fix
Browse files Browse the repository at this point in the history
[processing] fix ExtentSelectionPanel's getValue()
  • Loading branch information
alexbruy committed Nov 15, 2016
2 parents 6bfd0fd + c87839f commit adcb772
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 adcb772

Please sign in to comment.