mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-04 11:23:50 +00:00
fixed computation of boats to show
This commit is contained in:
1 parent
2b5bfaa810
commit
ceed9894de
1 file changed
+3
-7
+3
-7
@@ -656,15 +656,11 @@ public class RaceMap implements TimeListener, CompetitorSelectionChangeListener,
|
|||||||
|
|
||||||
private Iterable<CompetitorDAO> getCompetitorsToShow() {
|
private Iterable<CompetitorDAO> getCompetitorsToShow() {
|
||||||
Iterable<CompetitorDAO> result;
|
Iterable<CompetitorDAO> result;
|
||||||
if (getSettings().isShowOnlySelectedCompetitors() && Util.isEmpty(competitorSelection.getSelectedCompetitors())) {
|
Iterable<CompetitorDAO> selection = competitorSelection.getSelectedCompetitors();
|
||||||
|
if (!getSettings().isShowOnlySelectedCompetitors() || Util.isEmpty(selection)) {
|
||||||
result = competitorSelection.getAllCompetitors();
|
result = competitorSelection.getAllCompetitors();
|
||||||
} else {
|
} else {
|
||||||
Iterable<CompetitorDAO> selection = competitorSelection.getSelectedCompetitors();
|
result = selection;
|
||||||
if (Util.isEmpty(selection)) {
|
|
||||||
result = competitorSelection.getAllCompetitors();
|
|
||||||
} else {
|
|
||||||
result = selection;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user