[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:
@@ -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."));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user