Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/14/16 14:30:23 (8 years ago)
Author:
jkarder
Message:

#1265: worked on visualization

  • added null check for shortcut actions
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Visualization/HeuristicLab.Visualization/3.3/ChartControl.cs

    r13762 r13763  
    229229          if (e.KeyCode == shortcut.Key && e.Modifiers == shortcut.Modifiers) {
    230230            ActiveShortcut = shortcut;
    231             shortcut.DownAction();
     231            var downAction = shortcut.DownAction;
     232            if (downAction != null) downAction();
    232233            break;
    233234          }
     
    247248
    248249        if (ActiveShortcut.Key == e.KeyCode || ActiveShortcut.GetModifiers().Except(modifiers).Any()) {
    249           ActiveShortcut.UpAction();
     250          var upAction = ActiveShortcut.UpAction;
     251          if (upAction != null) upAction();
    250252          ActiveShortcut = null;
    251253        }
Note: See TracChangeset for help on using the changeset viewer.