Free cookie consent management tool by TermsFeed Policy Generator

Changeset 14972


Ignore:
Timestamp:
05/11/17 16:53:13 (8 years ago)
Author:
gkronber
Message:

#2640: merged r14160 from trunk to stable (was omitted when merging #2594

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stable/HeuristicLab.Visualization.ChartControlsExtensions/3.3/ChartUtil.cs

    r14161 r14972  
    3838      // if one of the interval ends is a multiple of 5 or 10, change the other interval end to be a multiple as well
    3939      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))) {
    40         aMax = Math.Min(aMax + 5 - aMax % 5, aMax + 10 - aMax % 10);
     40        aMax = Math.Min(aMax + 5 - aMax.Mod(5), aMax + 10 - aMax.Mod(10));
    4141      } 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))) {
    4242        aMin = Math.Max(aMin - aMin.Mod(5), aMin - aMin.Mod(10));
Note: See TracChangeset for help on using the changeset viewer.