mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-06 12:23:55 +00:00
fixed autoAdvance bug in replay mode
This commit is contained in:
1 parent
35820192dc
commit
21033abd1f
1 file changed
+1
-1
+1
-1
@@ -302,7 +302,7 @@ public class TimePanel<T extends TimePanelSettings> extends FormPanel implements
|
||||
// Handle it equally for replay and live mode for robustness reasons. This at least allows a user
|
||||
// to watch on even if the time panel was off in its assumptions about race end and end of tracking.
|
||||
if (time.after(getMax())) {
|
||||
Date newMaxTime = time;
|
||||
Date newMaxTime = new Date(time.getTime());
|
||||
if (newMaxTime.getTime() - getMax().getTime() < MINIMUM_AUTO_ADVANCE_TIME_IN_MS) {
|
||||
newMaxTime.setTime(getMax().getTime() + MINIMUM_AUTO_ADVANCE_TIME_IN_MS);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user