Index: src/Common/DelftTools.Controls.Swf/Charting/TeeChartHelper.cs =================================================================== diff -u -r8f6ae890fed8e8eae3a32f9c0498a10f82e0ddf9 -r5fc71a385897af92ccb092f2f969b5709afab85a --- src/Common/DelftTools.Controls.Swf/Charting/TeeChartHelper.cs (.../TeeChartHelper.cs) (revision 8f6ae890fed8e8eae3a32f9c0498a10f82e0ddf9) +++ src/Common/DelftTools.Controls.Swf/Charting/TeeChartHelper.cs (.../TeeChartHelper.cs) (revision 5fc71a385897af92ccb092f2f969b5709afab85a) @@ -20,15 +20,19 @@ int Dif = 10000; // Tool.GetFirstLastSeries is changed from public to internal and we do not want to modify TeeChart - object[] args = new object[] { series, tmpMin, tmpMax }; + object[] args = new object[] + { + series, + tmpMin, + tmpMax + }; MethodInfo getFirstLastSeries = typeof(Tool).GetMethod("GetFirstLastSeries", BindingFlags.Static | BindingFlags.NonPublic); - bool getFirstLastSeriesResult = (bool)getFirstLastSeries.Invoke(null, args); + bool getFirstLastSeriesResult = (bool) getFirstLastSeries.Invoke(null, args); // retrieve the out parameters - tmpMin = (int)args[1]; - tmpMax = (int)args[2]; + tmpMin = (int) args[1]; + tmpMax = (int) args[2]; if (getFirstLastSeriesResult) - - + { for (int t = tmpMin; t <= tmpMax; t++) { int tmpX = series.CalcXPos(t); @@ -48,8 +52,9 @@ } } } + } //THIS is done because Tool.GetFirstLastSeries(series, out tmpMin, out tmpMax)) is not documented (unable to find) - Assert.IsTrue(result >= -1,"Should not return indexes below -1!!"); + Assert.IsTrue(result >= -1, "Should not return indexes below -1!!"); return result; }