Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/30/11 13:05:05 (14 years ago)
Author:
gkronber
Message:

#1418 added missing cloning of symbolic expression trees and problem data in data analysis solutions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/DataAnalysisSolution.cs

    r5809 r5880  
    7878      name = ItemName;
    7979      description = ItemDescription;
    80       Add(new Result(ModelResultName, "The symbolic data analysis model.", model));
    81       Add(new Result(ProblemDataResultName, "The symbolic data analysis problem data.", problemData));
     80      IDataAnalysisModel modelClone = (IDataAnalysisModel)model.Clone();
     81      IDataAnalysisProblemData problemDataClone = (IDataAnalysisProblemData)problemData.Clone();
     82      Add(new Result(ModelResultName, "The symbolic data analysis model.", modelClone));
     83      Add(new Result(ProblemDataResultName, "The symbolic data analysis problem data.", problemDataClone));
    8284
    83       problemData.Changed += new EventHandler(ProblemData_Changed);
     85      problemDataClone.Changed += new EventHandler(ProblemData_Changed);
    8486    }
    8587
Note: See TracChangeset for help on using the changeset viewer.