[Gui] fix for DlgSettingsColorGradient dialog

- we have cases where the max = min is correct. For example in the FEM DataAtPoint filter - since it is a point, max = min.
This commit is contained in:
Uwe
2022-03-28 12:27:43 +02:00
parent 4bfee097e1
commit 1aadb84b6f

View File

@@ -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."));
}