Index: src/Common/DelftTools.Controls.Swf/Charting/Tools/GeoApiHelper.cs =================================================================== diff -u -r8f6ae890fed8e8eae3a32f9c0498a10f82e0ddf9 -r5fc71a385897af92ccb092f2f969b5709afab85a --- src/Common/DelftTools.Controls.Swf/Charting/Tools/GeoApiHelper.cs (.../GeoApiHelper.cs) (revision 8f6ae890fed8e8eae3a32f9c0498a10f82e0ddf9) +++ src/Common/DelftTools.Controls.Swf/Charting/Tools/GeoApiHelper.cs (.../GeoApiHelper.cs) (revision 5fc71a385897af92ccb092f2f969b5709afab85a) @@ -7,7 +7,7 @@ { public class GeoApiHelper { - public static IGeometry GetBoundedSeriesPolygon(Steema.TeeChart.Styles.Series series, double leftXValue, double rightXValue, double bottomYValue, double topYValue ) + public static IGeometry GetBoundedSeriesPolygon(Steema.TeeChart.Styles.Series series, double leftXValue, double rightXValue, double bottomYValue, double topYValue) { var seriesCoordinates = new List(); var startIndex = Math.Max(0, series.FirstVisibleIndex - 1); @@ -24,10 +24,10 @@ { ICoordinate lastCoordinate = GeometryFactory.CreateCoordinate(series.CalcXPos(i), series.CalcYPos(i)); seriesCoordinates.Add(lastCoordinate); - xmin = (int)Math.Min(xmin, lastCoordinate.X); - xmax = (int)Math.Max(xmax, lastCoordinate.X); - ymin = (int)Math.Min(ymin, lastCoordinate.Y); - ymax = (int)Math.Max(ymax, lastCoordinate.Y); + xmin = (int) Math.Min(xmin, lastCoordinate.X); + xmax = (int) Math.Max(xmax, lastCoordinate.X); + ymin = (int) Math.Min(ymin, lastCoordinate.Y); + ymax = (int) Math.Max(ymax, lastCoordinate.Y); } ymin -= 20; seriesCoordinates.Add(GeometryFactory.CreateCoordinate(seriesCoordinates[seriesCoordinates.Count - 1].X, @@ -43,12 +43,12 @@ var coordinates = new List(); - var left = Math.Max(xmin, series.CalcXPosValue(leftXValue)); + var left = Math.Max(xmin, series.CalcXPosValue(leftXValue)); var right = Math.Min(xmax, series.CalcXPosValue(rightXValue)); var bottom = Math.Max(ymin, series.CalcYPosValue(bottomYValue)); var top = Math.Min(ymax, series.CalcYPosValue(topYValue)); //waterlevel line - + coordinates.Add(GeometryFactory.CreateCoordinate(left, top)); coordinates.Add(GeometryFactory.CreateCoordinate(left, bottom)); @@ -57,13 +57,13 @@ coordinates.Add(GeometryFactory.CreateCoordinate(right, bottom)); coordinates.Add(GeometryFactory.CreateCoordinate(right, top)); - coordinates.Add(GeometryFactory.CreateCoordinate(left + (right - top) / 2, top - 1)); + coordinates.Add(GeometryFactory.CreateCoordinate(left + (right - top)/2, top - 1)); coordinates.Add(GeometryFactory.CreateCoordinate(left, top)); linearRing = geomFactory.CreateLinearRing(coordinates.ToArray()); IPolygon polygon = geomFactory.CreatePolygon(linearRing, null); - if(seriesPolygon.IsEmpty) + if (seriesPolygon.IsEmpty) { return Polygon.Empty; }