Free cookie consent management tool by TermsFeed Policy Generator

Changeset 4597


Ignore:
Timestamp:
10/14/10 16:53:58 (14 years ago)
Author:
mkommend
Message:

Fixed cloning of Problem (ticket #1232).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization/3.3/Problem.cs

    r4596 r4597  
    2323using System.Collections.Generic;
    2424using System.Drawing;
    25 using System.Linq;
    2625using HeuristicLab.Collections;
    2726using HeuristicLab.Common;
     
    6059    public override IDeepCloneable Clone(Cloner cloner) {
    6160      Problem<T, U> clone = (Problem<T, U>)base.Clone(cloner);
    62       clone.operators = new OperatorCollection(operators.Select(x => (IOperator)cloner.Clone(x)));
     61      clone.operators = (OperatorCollection)cloner.Clone(operators);
    6362      clone.RegisterEventHandlers();
    6463      return clone;
Note: See TracChangeset for help on using the changeset viewer.