fixing bug 3722: time slider also needs to extend into the past if necessary

Change-Id: I3b88ea24040f51ffc7d7d56e16d4f887a328c7e3
This commit is contained in:
Axel Uhl committed 2016-06-18 21:34:36 +02:00
1 parent 6d87074bbb
commit 151e11d7ba
1 file changed
+3 -1
@@ -246,7 +246,9 @@ public class RaceTimePanel extends TimePanel<RaceTimePanelSettings> implements R
Date max = raceMinMax.getB();
// never reduce max if it was already set
if (min != null && max != null && (getToTime() == null || getToTime().before(max))) {
if (min != null && max != null &&
(getToTime() == null || getToTime().before(max) ||
getFromTime() == null || getFromTime().after(min))) {
setMinMax(min, max, /* fireEvent */ false); // no event because we guarantee time to be between min and max
}
}