Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/25/12 11:32:22 (12 years ago)
Author:
svonolfe
Message:

Fixed issues that prevented the unit tests to pass (#1177)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.VehicleRouting/3.4/Analyzer/VRPSolution.cs

    r7203 r7906  
    106106    private VRPSolution(VRPSolution original, Cloner cloner)
    107107      : base(original, cloner) {
    108       this.problemInstance = original.problemInstance;
    109108      this.solution = (IVRPEncoding)cloner.Clone(original.solution);
    110109      this.quality = (DoubleValue)cloner.Clone(original.quality);
     110
     111      if (original.ProblemInstance != null && cloner.ClonedObjectRegistered(original.ProblemInstance))
     112        this.ProblemInstance = (IVRPProblemInstance)cloner.Clone(original.ProblemInstance);
     113      else
     114        this.ProblemInstance = original.ProblemInstance;
    111115
    112116      this.Initialize();
Note: See TracChangeset for help on using the changeset viewer.