From 39d78eafae7944947af6002cffbf89ec19287100 Mon Sep 17 00:00:00 2001 From: Lennart Hensler Date: Thu, 9 Feb 2012 12:18:06 +0100 Subject: [PATCH] Changed zoom behavior when BOATS and TAILS are selected --- .../sailing/gwt/ui/adminconsole/RaceMapZoomSettings.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/java/com.sap.sailing.gwt.ui/src/main/java/com/sap/sailing/gwt/ui/adminconsole/RaceMapZoomSettings.java b/java/com.sap.sailing.gwt.ui/src/main/java/com/sap/sailing/gwt/ui/adminconsole/RaceMapZoomSettings.java index 85b86fa8d87..a8c6021da83 100644 --- a/java/com.sap.sailing.gwt.ui/src/main/java/com/sap/sailing/gwt/ui/adminconsole/RaceMapZoomSettings.java +++ b/java/com.sap.sailing.gwt.ui/src/main/java/com/sap/sailing/gwt/ui/adminconsole/RaceMapZoomSettings.java @@ -40,12 +40,7 @@ public class RaceMapZoomSettings { LatLngBounds newBounds = null; if (typesToConsiderOnZoom != null) { for (ZoomTypes type : typesToConsiderOnZoom) { - //Skip the calculation of the boat bounds, if the list contains TAILS. - //That's because the tails already contain the boats - if (type == ZoomTypes.BOATS && typesToConsiderOnZoom.contains(ZoomTypes.TAILS)) { - continue; - } - //Set the for selected attribute for the corresponding calculaters + //Set the forSelected attribute for the corresponding calculaters if (type.calculater instanceof LatLngBoundsCalculaterForSelected) { ((LatLngBoundsCalculaterForSelected) type.calculater) .setZoomOnlyToSelectedCompetitors(zoomToSelectedCompetitors);