mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-28 14:57:12 +00:00
fixing bug 3722: time slider also needs to extend into the past if necessary
Change-Id: I3b88ea24040f51ffc7d7d56e16d4f887a328c7e3
This commit is contained in:
1 parent
6d87074bbb
commit
151e11d7ba
1 file changed
+3
-1
+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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user