Fix RideEditor find dialog for 'between'

The find dialog expected the between values
to be small and high, this patch will find
values between regardless of whether the
search values are lo/hi or hi/lo.

Fixes #351.
This commit is contained in:
Mark Liversedge
2011-08-01 23:52:36 +01:00
parent 192973332a
commit 5f8907a2ff

View File

@@ -1708,7 +1708,8 @@ FindDialog::find()
switch(type->currentIndex()) {
case 0 : // between
if (value >= from->value() && value <= to->value()) match = true;
if ((value >= from->value() && value <= to->value()) ||
(value <= from->value() && value >= to->value())) match = true;
break;
case 1 : // not between