Skip to content

Commit

Permalink
Fix the check for wrong freq settings
Browse files Browse the repository at this point in the history
  • Loading branch information
andresmmera committed May 26, 2018
1 parent 70f3d12 commit 7b8a1e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qucs/qucs-wideband-matching/ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ void ui::go_clicked()
double fmatching_min = minFEdit->text().toDouble();
double fmatching_max = maxFEdit->text().toDouble();

if ((fmatching_min == -1) || (fmatching_max == -1))
if ((fmatching_min == -1) || (fmatching_max == -1) || (fmatching_min > fmatching_max))
{
QMessageBox::warning(0, QObject::tr("Error"),
QObject::tr("Wrong frequency settings"));
Expand Down

0 comments on commit 7b8a1e0

Please sign in to comment.