Changeset 6626
- Timestamp:
- 08/03/11 11:48:16 (13 years ago)
- Location:
- branches/GP.Grammar.Editor
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GP.Grammar.Editor/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.4/SymbolicExpressionGrammarEditorView.cs
r6622 r6626 188 188 Point mouse = symbolsTreeView.PointToClient(new Point(e.X, e.Y)); 189 189 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; 192 193 var symbol = e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat); 193 194 if (symbol == groupSymbol) return; -
branches/GP.Grammar.Editor/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/SymbolicExpressionGrammar.cs
r6622 r6626 229 229 230 230 protected override void OnChanged() { 231 if (!suppressEvents) base.OnChanged(); 231 if (suppressEvents) return; 232 base.OnChanged(); 232 233 } 233 234 #endregion -
branches/GP.Grammar.Editor/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/SymbolicExpressionGrammarBase.cs
r6622 r6626 148 148 } 149 149 } 150 suppressEvents = true; 151 foreach (var groupSymbol in Symbols.OfType<GroupSymbol>()) 152 groupSymbol.SymbolsCollection.Remove(symbol); 153 suppressEvents = false; 150 154 } 151 155 ClearCaches();
Note: See TracChangeset
for help on using the changeset viewer.