Skip to content

Commit c87839f

Browse files
committedNov 15, 2016
[processing] fix ExtentSelectionPanel's getValue()
1 parent d237e27 commit c87839f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎python/plugins/processing/gui/AlgorithmDialog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def accept(self):
211211
self.resetGUI()
212212
except AlgorithmDialogBase.InvalidParameterValue as e:
213213
try:
214-
self.buttonBox.accepted.connect(lambda:
214+
self.buttonBox.accepted.connect(lambda e=e:
215215
e.widget.setPalette(QPalette()))
216216
palette = e.widget.palette()
217217
palette.setColor(QPalette.Base, QColor(255, 255, 0))

‎python/plugins/processing/gui/ExtentSelectionPanel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def setValueFromRect(self, r):
153153
self.dialog.activateWindow()
154154

155155
def getValue(self):
156-
if str(self.leText.text()).strip() == '':
156+
if str(self.leText.text()).strip() != '':
157157
return str(self.leText.text())
158158
else:
159159
return None

0 commit comments

Comments
 (0)
Please sign in to comment.