mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-26 15:36:40 +00:00
quickfix for bug 1083
This commit is contained in:
+11
-2
@@ -316,8 +316,17 @@ public abstract class AbstractChartPanel<SettingsType extends ChartSettings> ext
|
||||
newRaceDataPoints = new Point[currentPointIndex];
|
||||
System.arraycopy(raceDataPointsToAdd, 0, newRaceDataPoints, 0, currentPointIndex);
|
||||
}
|
||||
|
||||
competitorDataSeries.setPoints(newRaceDataPoints, false);
|
||||
|
||||
if(timeRangeWithZoomProvider.isZoomed()) {
|
||||
Pair<Date, Date> timeZoom = timeRangeWithZoomProvider.getTimeZoom();
|
||||
resetMinMaxInterval();
|
||||
|
||||
competitorDataSeries.setPoints(newRaceDataPoints, false);
|
||||
|
||||
changeMinMaxInterval(timeZoom.getA(), timeZoom.getB());
|
||||
} else {
|
||||
competitorDataSeries.setPoints(newRaceDataPoints, false);
|
||||
}
|
||||
|
||||
// Adding the series if chart doesn't contain it
|
||||
if (!chartSeries.contains(competitorDataSeries)) {
|
||||
|
||||
+2
-2
@@ -106,7 +106,7 @@ public abstract class RaceChart extends SimplePanel implements RaceSelectionChan
|
||||
return true;
|
||||
}
|
||||
|
||||
protected void resetMinMaxInterval(Date minIntervalTimepoint, Date maxIntervalTimepoint) {
|
||||
protected void resetMinMaxInterval() {
|
||||
XAxis xAxis = chart.getXAxis();
|
||||
Date minTimepoint = timeRangeWithZoomProvider.getFromTime();
|
||||
Date maxTimepoint = timeRangeWithZoomProvider.getToTime();
|
||||
@@ -137,7 +137,7 @@ public abstract class RaceChart extends SimplePanel implements RaceSelectionChan
|
||||
}
|
||||
|
||||
public void onTimeRangeChanged(Date fromTime, Date toTime) {
|
||||
resetMinMaxInterval(fromTime, toTime);
|
||||
resetMinMaxInterval();
|
||||
}
|
||||
|
||||
public void onTimeZoomReset() {
|
||||
|
||||
Reference in New Issue
Block a user