Free cookie consent management tool by TermsFeed Policy Generator

Changeset 2141 for trunk/sources


Ignore:
Timestamp:
07/06/09 22:14:23 (15 years ago)
Author:
gkronber
Message:

Fixed #692 (Zooming in bubble chart zooms to incorrect region for large zoom factors).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.CEDMA.Charting/3.3/BubbleChart.cs

    r2140 r2141  
    136136      points = new Group(this);
    137137      Group.Add(new Axis(this, 0, 0, AxisType.Both));
    138       UpdateViewSize(0, 0, 5);
     138      UpdateViewSize(0, 0, TransformPixelToWorld(new Size(5, 0)).Width);
    139139      foreach (ResultsEntry r in results.GetEntries().Where(x => x.Visible)) {
    140140        List<double> xs = new List<double>();
     
    212212            string actualXValue = actualXValues[Math.Min(i, actualXValues.Count() - 1)].ToString();
    213213            string actualYValue = actualYValues[Math.Min(i, actualYValues.Count() - 1)].ToString();
    214             UpdateViewSize(x, y, size);
     214            UpdateViewSize(x, y, TransformPixelToWorld(new Size(size, 0)).Width);
    215215            int alpha = CalculateAlpha(size);
    216216            Pen pen = new Pen(Color.FromArgb(alpha, r.Selected ? selectionColor : defaultColor));
Note: See TracChangeset for help on using the changeset viewer.