Skip to content
Snippets Groups Projects

fix bug not allow adding new higher condition in MultiColorDotDialog

Merged Lan Dam requested to merge i264_multicolordot_adding_new_value into develop
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -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())
Loading