Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/03/11 11:48:16 (13 years ago)
Author:
mkommend
Message:

#1479: Corrected bug concerning the deletion of symbols in the grammar editor.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GP.Grammar.Editor/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.4/SymbolicExpressionGrammarEditorView.cs

    r6622 r6626  
    188188        Point mouse = symbolsTreeView.PointToClient(new Point(e.X, e.Y));
    189189        TreeNode node = symbolsTreeView.GetNodeAt(mouse);
    190         if (node != null) groupSymbol = node.Tag as GroupSymbol;
    191         if (node != null && groupSymbol == null) groupSymbol = node.Parent.Tag as GroupSymbol;
     190        if (node == null) return;
     191        groupSymbol = node.Tag as GroupSymbol;
     192        if (groupSymbol == null) return;
    192193        var symbol = e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat);
    193194        if (symbol == groupSymbol) return;
Note: See TracChangeset for help on using the changeset viewer.