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 0f9b82a750
commit a70cf8ebc0

View File

@@ -1644,7 +1644,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