- Timestamp:
- 10/23/16 19:31:18 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Visualization.ChartControlsExtensions/3.3/ChartUtil.cs
r14160 r14353 37 37 38 38 // if one of the interval ends is a multiple of 5 or 10, change the other interval end to be a multiple as well 39 if ( (aMin.Mod(5).IsAlmost(0) || aMin.Mod(10).IsAlmost(0)) && Math.Abs(aMax) >= 5&& !(aMax.Mod(5).IsAlmost(0) || aMax.Mod(10).IsAlmost(0))) {39 if (Math.Abs(aMax) >= 5 && aMin.Mod(5).IsAlmost(0) && !(aMax.Mod(5).IsAlmost(0) || aMax.Mod(10).IsAlmost(0))) { 40 40 aMax = Math.Min(aMax + 5 - aMax.Mod(5), aMax + 10 - aMax.Mod(10)); 41 } else if ( (aMax.Mod(5).IsAlmost(0) || aMax.Mod(10).IsAlmost(0)) && Math.Abs(aMin) >= 5&& !(aMin.Mod(5).IsAlmost(0) || aMin.Mod(10).IsAlmost(0))) {41 } else if (Math.Abs(aMin) >= 5 && aMax.Mod(5).IsAlmost(0) && !(aMin.Mod(5).IsAlmost(0) || aMin.Mod(10).IsAlmost(0))) { 42 42 aMin = Math.Max(aMin - aMin.Mod(5), aMin - aMin.Mod(10)); 43 43 }
Note: See TracChangeset
for help on using the changeset viewer.