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/Encodings/General/TourEncoding.cs

    r7543 r7906  
    115115      : base(original, cloner) {
    116116       this.Tours = (ItemList<Tour>)cloner.Clone(original.Tours);
    117        this.ProblemInstance = original.ProblemInstance;
     117       if (original.ProblemInstance != null && cloner.ClonedObjectRegistered(original.ProblemInstance))
     118         this.ProblemInstance = (IVRPProblemInstance)cloner.Clone(original.ProblemInstance);
     119       else
     120         this.ProblemInstance = original.ProblemInstance;
    118121    }
    119122
Note: See TracChangeset for help on using the changeset viewer.