Ignore:
Timestamp:
12/09/16 15:19:30 (4 years ago)
Author:
pfleck
Message:

#2709

  • Fixed bugs with double-click on view shortcut.
  • Reuse visual properties for single scatterplot.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing.Views/3.4/ViewShortcutListView.cs

    r14467 r14470  
    4646        IViewShortcut item = itemsListView.SelectedItems[0].Tag as IViewShortcut;
    4747        if (item != null) {
    48           item = (IViewShortcut)item.Clone();
    49 
    50           var view = MainFormManager.MainForm.ShowContent(item);
    51           if (view != null) {
    52             view.ReadOnly = ReadOnly;
    53             view.Locked = Locked;
     48          try {
     49            item = (IViewShortcut)item.Clone();
     50            var view = MainFormManager.MainForm.ShowContent(item);
     51            if (view != null) {
     52              view.ReadOnly = ReadOnly;
     53              view.Locked = Locked;
     54            }
     55          } catch (NullReferenceException) {
     56            // cloning for preprocessing not done properly yet
    5457          }
    5558        }
Note: See TracChangeset for help on using the changeset viewer.