Ignore:
Timestamp:
07/01/14 10:53:46 (5 years ago)
Author:
mkommend
Message:

#2206: Updated data preprocessing branch with trunk changes.

Location:
branches/DataPreprocessing
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing

  • branches/DataPreprocessing/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionBubbleChartView.cs

    r11009 r11064  
    663663      Axis yAxis = this.chart.ChartAreas[0].AxisY;
    664664      int axisDimensionCount = Enum.GetNames(typeof(AxisDimension)).Count();
    665       SetCustomAxisLabels(xAxis, xAxisComboBox.SelectedIndex - axisDimensionCount);
    666       SetCustomAxisLabels(yAxis, yAxisComboBox.SelectedIndex - axisDimensionCount);
    667       if (xAxisComboBox.SelectedItem != null)
    668         xAxis.Title = xAxisComboBox.SelectedItem.ToString();
    669       if (yAxisComboBox.SelectedItem != null)
    670         yAxis.Title = yAxisComboBox.SelectedItem.ToString();
     665      //mkommend: combobox.SelectedIndex could not be used as this changes during hoovering over possible values
     666      var xSAxisSelectedIndex = xAxisValue == null ? 0 : xAxisComboBox.Items.IndexOf(xAxisValue);
     667      var ySAxisSelectedIndex = yAxisValue == null ? 0 : xAxisComboBox.Items.IndexOf(yAxisValue);
     668      SetCustomAxisLabels(xAxis, xSAxisSelectedIndex - axisDimensionCount);
     669      SetCustomAxisLabels(yAxis, ySAxisSelectedIndex - axisDimensionCount);
     670      if (xAxisValue != null)
     671        xAxis.Title = xAxisValue;
     672      if(yAxisValue != null)
     673      yAxis.Title = yAxisValue;
    671674    }
    672675
Note: See TracChangeset for help on using the changeset viewer.