Free cookie consent management tool by TermsFeed Policy Generator

Changeset 10861 for trunk


Ignore:
Timestamp:
05/19/14 16:29:18 (11 years ago)
Author:
pfleck
Message:

#2184:

  • Set the Solution in the VRPProblemInstanceView to null when content is changing and set the Solution on the new ActiveView to avoid repainting the new ProblemInstance with the old Solution.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.VehicleRouting.Views/3.4/VRPSolutionView.cs

    r9456 r10861  
    4949
    5050    private void UpdateContent() {
     51      var view = problemInstanceView.ActiveView as VRPProblemInstanceView;
     52      if (view != null) view.Solution = null;
     53
    5154      problemInstanceView.Content = Content.ProblemInstance;
    52       VRPProblemInstanceView view = problemInstanceView.ActiveView as VRPProblemInstanceView;
    53       if (view != null) {
    54         view.Solution = Content.Solution;
    55       }
     55
     56      view = problemInstanceView.ActiveView as VRPProblemInstanceView;
     57      if (view != null) view.Solution = Content.Solution;
    5658
    5759      UpdateTourView();
Note: See TracChangeset for help on using the changeset viewer.