Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/03/17 12:36:34 (7 years ago)
Author:
mkommend
Message:

#2843: Added cloning in DataAnalysisSolutionView if the problemData is changed by drag and drop.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views/DataAnalysisSolutionView.cs

    r14770 r15395  
    142142        var solution = (IDataAnalysisSolution)Content.Clone();
    143143        problemData.AdjustProblemDataProperties(solution.ProblemData);
     144
    144145        solution.ProblemData = problemData;
    145146        if (!solution.Name.EndsWith(" with loaded problemData"))
     
    213214
    214215    protected override void itemsListView_DragDrop(object sender, DragEventArgs e) {
    215       if (e.Effect == DragDropEffects.None) return;
     216      if (e.Effect != DragDropEffects.Copy) return;
    216217
    217218      IDataAnalysisProblemData problemData = null;
     
    227228      if (problemData == null) return;
    228229
     230      problemData = (IDataAnalysisProblemData)problemData.Clone();
     231
    229232      try {
    230233        problemData.AdjustProblemDataProperties(Content.ProblemData);
Note: See TracChangeset for help on using the changeset viewer.