mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-30 17:36:40 +00:00
don't implicitly add COMBINED wind track if wind sources are explicitly specified
This commit is contained in:
1 parent
2150629d7b
commit
d9dcba2506
1 file changed
+2
-2
+2
-2
@@ -546,12 +546,12 @@ public class SailingServiceImpl extends RemoteServiceServlet implements SailingS
|
||||
result.windTrackInfoByWindSource = windTrackInfoDTOs;
|
||||
if (from != null && to != null) {
|
||||
List<WindSource> windSourcesToDeliver = new ArrayList<WindSource>();
|
||||
if (windSources == null) {
|
||||
if (windSources != null) {
|
||||
windSourcesToDeliver.addAll(Arrays.asList(windSources));
|
||||
} else {
|
||||
Util.addAll(trackedRace.getWindSources(), windSourcesToDeliver);
|
||||
}
|
||||
windSourcesToDeliver.add(new WindSourceImpl(WindSourceType.COMBINED));
|
||||
}
|
||||
for (WindSource windSource : windSourcesToDeliver) {
|
||||
WindTrackInfoDTO windTrackInfoDTO = new WindTrackInfoDTO();
|
||||
windTrackInfoDTO.windFixes = new ArrayList<WindDTO>();
|
||||
|
||||
Reference in new issue
Block a user