Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/25/10 17:03:13 (14 years ago)
Author:
epitzer
Message:

Fixed rounding to correct interval (#1237)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Visualization.ChartControlsExtensions/3.3/EnhancedChart.cs

    r4638 r4646  
    127127        double y = panning.ChartY(e.Location.Y, Height);
    128128        if (panning.ChartArea.CursorX.Interval > 0) {
    129           x = Math.Round(x * panning.ChartArea.CursorX.Interval) / panning.ChartArea.CursorX.Interval;
    130           y = Math.Round(y * panning.ChartArea.CursorY.Interval) / panning.ChartArea.CursorY.Interval;
     129          x = Math.Round(x / panning.ChartArea.CursorX.Interval) * panning.ChartArea.CursorX.Interval;
     130          y = Math.Round(y / panning.ChartArea.CursorY.Interval) * panning.ChartArea.CursorY.Interval;
    131131        }
    132132        panning.ChartArea.AxisX.ScaleView.Scroll(x);
Note: See TracChangeset for help on using the changeset viewer.