Free cookie consent management tool by TermsFeed Policy Generator

Changeset 15672


Ignore:
Timestamp:
01/30/18 13:14:25 (6 years ago)
Author:
fholzing
Message:

#2880: Content-check prefixed in method

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionBoxPlotView.cs

    r15623 r15672  
    401401
    402402    private void SetCustomAxisLabels(Axis axis, int dimension) {
     403      if (Content == null) { return; }
     404      if (!Content.Any()) { return; }
     405
    403406      axis.CustomLabels.Clear();
    404407      if (categoricalMapping.ContainsKey(dimension)) {
     
    417420          position++;
    418421        }
    419       } else if (dimension > 0 && Content != null && Content.Count > 0 && Content.GetValue(0, dimension) is TimeSpanValue) {
     422      } else if (dimension > 0 && Content.GetValue(0, dimension) is TimeSpanValue) {
    420423        this.chart.ChartAreas[0].RecalculateAxesScale();
    421424        Axis correspondingAxis = this.chart.ChartAreas[0].Axes.Where(x => x.Name == axis.Name).SingleOrDefault();
Note: See TracChangeset for help on using the changeset viewer.