Skip to content
Snippets Groups Projects
Commit 07a774c2 authored by Lan Dam's avatar Lan Dam
Browse files

fix bug not allow adding new higher condition in MultiColorDotDialog

parent 01f5d4fd
No related branches found
No related tags found
1 merge request!299fix bug not allow adding new higher condition in MultiColorDotDialog
......@@ -240,7 +240,7 @@ class MultiColorDotDialog(EditValueColorDialog):
if prev_higher_bound != -20 else '')
cond += (f"d < {next_higher_bound}"
if next_higher_bound != 20 else 'd')
msg = f"Value entered must be: {cond}"
msg = f"Value d entered must be: {cond}"
QtWidgets.QMessageBox.information(self, "Error", msg)
try:
self.higher_bound_lnedits[row_id].setText(
......@@ -293,7 +293,7 @@ class MultiColorDotDialog(EditValueColorDialog):
# to always satisfy validating this row's higher bound value for value
# range is [-10,10]
next_higher_bound = (
20 if row_id == len(self.row_id_value_dict) - 1
20 if row_id >= len(self.row_id_value_dict) - 1
else float(self.higher_bound_lnedits[row_id + 1].text()))
curr_higher_bound = float(self.higher_bound_lnedits[row_id].text())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment