mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 08:08:42 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user