Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/06/13 23:11:56 (11 years ago)
Author:
gkronber
Message:

#2046: set the instance name and description to the item name and description if it is not explicitly set by the caller.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Analysis/3.3/DataVisualization/ScatterPlot.cs

    r8405 r9454  
    8888    public ScatterPlot()
    8989      : base() {
     90      this.Name = ItemName;
     91      this.Description = ItemDescription;
    9092      VisualProperties = new ScatterPlotVisualProperties();
    9193      Rows = new NamedItemCollection<ScatterPlotDataRow>();
     
    126128      if (rows == null) Rows = new NamedItemCollection<ScatterPlotDataRow>();
    127129      if ((Rows.Count == 0) && (points != null)) Rows.Add(new ScatterPlotDataRow(name, null, points.Select(p => new Point2D<double>(p.X, p.Y))));
     130      if (string.IsNullOrEmpty(this.name)) this.name = ItemName;
     131      if (string.IsNullOrEmpty(this.description)) this.description = ItemDescription;
    128132    }
    129133    #endregion
Note: See TracChangeset for help on using the changeset viewer.