Free cookie consent management tool by TermsFeed Policy Generator

Changeset 13560


Ignore:
Timestamp:
01/20/16 15:01:23 (9 years ago)
Author:
mkommend
Message:

#2565: Changed algorithmView to reset the viewType of the problemViewHost only when the types of the displayed and new problem differ.

File:
1 edited

Legend:

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

    r13244 r13560  
    133133        Invoke(new EventHandler(Content_ProblemChanged), sender, e);
    134134      else {
    135         problemViewHost.ViewType = null;
     135        if (problemViewHost.Content != null && Content.Problem != null &&
     136          problemViewHost.Content.GetType() != Content.Problem.GetType())
     137          problemViewHost.ViewType = null;
    136138        problemViewHost.Content = Content.Problem;
    137139      }
Note: See TracChangeset for help on using the changeset viewer.