Changeset 9057
- Timestamp:
- 12/14/12 13:03:29 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/InteractiveSymbolicExpressionTreeChart.cs
r9056 r9057 217 217 case EditOp.CutSubtree: { 218 218 if (tempNode.IterateNodesBreadth().Contains(node)) 219 throw new ArgumentException(); 219 throw new ArgumentException();// cannot cut/paste a node into itself 220 ModifyTree(Tree, tempNode.Parent, tempNode, null); //remove node from its original parent 221 ModifyTree(Tree, node, null, tempNode); //insert it as a child to the new parent 220 222 break; 221 223 } 222 224 case EditOp.CopySubtree: { 223 225 var clone = (SymbolicExpressionTreeNode)tempNode.Clone(); 224 clone.Parent = tempNode.Parent; 225 tempNode = clone; 226 ModifyTree(Tree, node, null, tempNode); 226 ModifyTree(Tree, node, null, clone); 227 227 break; 228 228 }
Note: See TracChangeset
for help on using the changeset viewer.