Compare commits

..

No commits in common. "c25f50190936bf81b0fa6dc879c6229e24feee68" and "501798a8cb6cea75a8a7b60d3ff6f062b0e39066" have entirely different histories.

View File

@ -2547,7 +2547,6 @@ namespace VEPROMS.CSLA.Library
newItemInfo.UpdateTransitionText(); newItemInfo.UpdateTransitionText();
newItemInfo.UpdateROText(); newItemInfo.UpdateROText();
newItemInfo.UpdatePastedStepTransitionText(); newItemInfo.UpdatePastedStepTransitionText();
// Add to tree // Add to tree
if (newItemInfo.NextItem != null) if (newItemInfo.NextItem != null)
{ {
@ -2565,10 +2564,14 @@ namespace VEPROMS.CSLA.Library
} }
else else
{ {
//Create tree node for copied procedure when no other procedures exist in the working draft (treeNodeReplace) //Create tree node for copied procedure when no other procedures exist in the folder
VETreeNode tn = null; VETreeNode vtn = treeNodeReplace as VETreeNode;
tn = new VETreeNode(newItemInfo); DocVersionInfo dvi = vtn.VEObject as DocVersionInfo;
treeNodeReplace.Nodes.Add(tn);
ItemInfo newProc = dvi.PasteChild(copyStartID);
VETreeNode tn1 = new VETreeNode(newProc);
treeNodeReplace.Nodes.Add(tn1); // add tree node to end of list.
treeNodeReplace = tn1;
} }
return newItemInfo; return newItemInfo;
} }