Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/03/21 20:42:06 (3 years ago)
Author:
mkommend
Message:

#3109: Corrected handling of empty data points when determining the y-axis range.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/RegressionSolutionLineChartViewBase.cs

    r17856 r17858  
    119119        double min = double.MaxValue, max = double.MinValue;
    120120        foreach (var point in chart.Series.SelectMany(x => x.Points)) {
    121           if (!point.YValues.Any() || double.IsInfinity(point.YValues[0]) || double.IsNaN(point.YValues[0]))
     121          if (point.IsEmpty || !point.YValues.Any() || double.IsInfinity(point.YValues[0]) || double.IsNaN(point.YValues[0]))
    122122            continue;
    123123          var y = point.YValues[0];
Note: See TracChangeset for help on using the changeset viewer.