Free cookie consent management tool by TermsFeed Policy Generator

Changeset 13825 for branches


Ignore:
Timestamp:
05/03/16 13:57:07 (9 years ago)
Author:
bburlacu
Message:

#2597: Fix small bug showing the vertical annotation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.RegressionSolutionGradientView/HeuristicLab.Problems.DataAnalysis.Views/3.4/GradientChart.cs

    r13820 r13825  
    204204        return;
    205205      Series.Clear();
     206
     207      var defaultValue = dataset.GetDoubleValue(variable, 0);
     208      var vla = VerticalLineAnnotation;
     209      vla.X = defaultValue;
     210      vla.Visible = ShowCursor;
    206211      Annotations.Clear();
    207 
    208       var defaultValue = dataset.GetDoubleValue(variable, 0);
    209       if (ShowCursor) {
    210         var vla = VerticalLineAnnotation;
    211         vla.Visible = true;
    212         Annotations.Add(vla);
    213         vla.X = defaultValue;
    214       }
     212      Annotations.Add(vla);
    215213
    216214      double axisMin, axisMax, axisInterval;
Note: See TracChangeset for help on using the changeset viewer.