Free cookie consent management tool by TermsFeed Policy Generator

Changeset 3981


Ignore:
Timestamp:
06/30/10 15:03:16 (14 years ago)
Author:
gkronber
Message:

Fixed cloning of Datasets which was changed to a broken solution with r3933. #938

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Dataset.cs

    r3933 r3981  
    3535  [StorableClass]
    3636  public sealed class Dataset : NamedItem, IStringConvertibleMatrix {
     37    // empty constructor for cloning
     38    private Dataset() : base() {
     39    }
     40   
    3741    [StorableConstructor]
    3842    protected Dataset(bool deserializing)
     
    116120
    117121    public override IDeepCloneable Clone(Cloner cloner) {
    118       return this;
     122      Dataset clone = (Dataset)base.Clone(cloner);
     123      clone.variableNames = variableNames;
     124      clone.data = data;
     125      return clone;
    119126    }
    120127
Note: See TracChangeset for help on using the changeset viewer.