Skip to content

Commit

Permalink
[Gui] fix for DlgSettingsColorGradient dialog
Browse files Browse the repository at this point in the history
- we have cases where the max = min is correct. For example in the FEM DataAtPoint filter - since it is a point, max = min.
  • Loading branch information
donovaly committed Mar 28, 2022
1 parent b3d7490 commit 5f5afd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Gui/DlgSettingsColorGradientImp.cpp
Expand Up @@ -157,7 +157,7 @@ void DlgSettingsColorGradientImp::accept()
double fMax = QLocale().toDouble(ui->floatLineEditMax->text());
double fMin = QLocale().toDouble(ui->floatLineEditMin->text());

if (fMax <= fMin) {
if (fMax < fMin) {
QMessageBox::warning(this, tr("Wrong parameter"),
tr("The maximum value must be higher than the minimum value."));
}
Expand Down

0 comments on commit 5f5afd4

Please sign in to comment.