Changeset 6026


Ignore:
Timestamp:
04/19/11 10:52:34 (8 years ago)
Author:
mkommend
Message:

#1413: Removed bug regarding the axis value change.

Location:
trunk/sources/HeuristicLab.Optimization.Views/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionBubbleChartView.Designer.cs

    r5976 r6026  
    204204      this.chart.Text = "chart";
    205205      this.chart.AxisViewChanged += new System.EventHandler<System.Windows.Forms.DataVisualization.Charting.ViewEventArgs>(this.chart_AxisViewChanged);
    206       this.chart.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.chart_DoubleClick);
     206      this.chart.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.chart_MouseDoubleClick);
    207207      this.chart.MouseMove += new System.Windows.Forms.MouseEventHandler(this.chart_MouseMove);
    208208      this.chart.MouseUp += new System.Windows.Forms.MouseEventHandler(this.chart_MouseUp);
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionBubbleChartView.cs

    r5976 r6026  
    432432
    433433    #region Drag & drop and tooltip
    434     private void chart_DoubleClick(object sender, MouseEventArgs e) {
     434    private void chart_MouseDoubleClick(object sender, MouseEventArgs e) {
    435435      HitTestResult h = this.chart.HitTest(e.X, e.Y);
    436436      if (h.ChartElementType == ChartElementType.DataPoint) {
     
    441441          view.Locked = this.Locked;
    442442        }
    443         this.chart.ChartAreas[0].CursorX.SetSelectionPosition(double.NaN, double.NaN);
    444         this.chart.ChartAreas[0].CursorY.SetSelectionPosition(double.NaN, double.NaN);
     443
     444        this.chart.ChartAreas[0].CursorX.SelectionStart = this.chart.ChartAreas[0].CursorX.SelectionEnd;
     445        this.chart.ChartAreas[0].CursorY.SelectionStart = this.chart.ChartAreas[0].CursorY.SelectionEnd;
    445446      }
    446447    }
Note: See TracChangeset for help on using the changeset viewer.