mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-04 11:23:50 +00:00
Fixed AbstractChartPanel hover bug
This commit is contained in:
1 parent
736946e017
commit
3b7c9469ce
1 file changed
+3
-1
+3
-1
@@ -412,7 +412,9 @@ public abstract class AbstractChartPanel<SettingsType extends ChartSettings> ext
|
||||
plot.addHoverListener(new PlotHoverListener() {
|
||||
public void onPlotHover(Plot plot, PlotPosition position, PlotItem item) {
|
||||
// FIXME can the indexOf ever find anything? seriesID is a List<SeriesHandler>; item.getSeries() returns a Series object
|
||||
CompetitorDTO competitor = competitorID.get(seriesID.indexOf(item.getSeries()));
|
||||
// CompetitorDTO competitor = competitorID.get(seriesID.indexOf(item.getSeries()));
|
||||
Integer index = item.getSeriesIndex() / 2;
|
||||
CompetitorDTO competitor = competitorID.get(index);
|
||||
if (item != null && competitor != null) {
|
||||
if (item.getSeries().getLabel().toLowerCase().contains("mark")) {
|
||||
selectedPointLabel.setText(stringMessages.competitorPassedMarkAtDate(competitor.name,
|
||||
|
||||
Reference in new issue
Block a user