This commit is contained in:
parent
52fe4b6ddd
commit
6c6676375a
@ -631,9 +631,8 @@ namespace Volian.Controls.Library
|
|||||||
ItemInfo.EAddpingPart pasteOpt = newtype == MenuSelections.StepBefore ? ItemInfo.EAddpingPart.Before : ItemInfo.EAddpingPart.After;
|
ItemInfo.EAddpingPart pasteOpt = newtype == MenuSelections.StepBefore ? ItemInfo.EAddpingPart.Before : ItemInfo.EAddpingPart.After;
|
||||||
// If parent step is open in step editor, the 'OnPasteItemInfo' event will cause
|
// If parent step is open in step editor, the 'OnPasteItemInfo' event will cause
|
||||||
// the item to be pasted in the step editor and the tree.
|
// the item to be pasted in the step editor and the tree.
|
||||||
if (OnPasteItemInfo(this, new vlnTreeItemInfoPasteEventArgs(ii, copyStartID, pasteOpt, ii.MyContent.Type))==null)
|
if (!OnPasteItemInfo(this, new vlnTreeItemInfoPasteEventArgs(ii, copyStartID, pasteOpt, ii.MyContent.Type)))
|
||||||
{
|
{
|
||||||
//return;
|
|
||||||
// The parent step was not open in the step editor, just paste step (in data) and add treenode.
|
// The parent step was not open in the step editor, just paste step (in data) and add treenode.
|
||||||
ItemInfo newItemInfo = null;
|
ItemInfo newItemInfo = null;
|
||||||
if (newtype == MenuSelections.StepBefore)
|
if (newtype == MenuSelections.StepBefore)
|
||||||
@ -648,7 +647,7 @@ namespace Volian.Controls.Library
|
|||||||
VETreeNode prevtn = (VETreeNode) tn.PrevNode;
|
VETreeNode prevtn = (VETreeNode) tn.PrevNode;
|
||||||
VETreeNode partn = (VETreeNode) tn.Parent;
|
VETreeNode partn = (VETreeNode) tn.Parent;
|
||||||
ItemInfo ii = tn.VEObject as ItemInfo;
|
ItemInfo ii = tn.VEObject as ItemInfo;
|
||||||
if (OnPasteItemInfo(this, new vlnTreeItemInfoPasteEventArgs(ii, copyStartID, ItemInfo.EAddpingPart.Replace, ii.MyContent.Type))==null)
|
if (!OnPasteItemInfo(this, new vlnTreeItemInfoPasteEventArgs(ii, copyStartID, ItemInfo.EAddpingPart.Replace, ii.MyContent.Type)))
|
||||||
{
|
{
|
||||||
//return;
|
//return;
|
||||||
ItemInfo replItemInfo = Item.PasteReplace(ii, copyStartID);
|
ItemInfo replItemInfo = Item.PasteReplace(ii, copyStartID);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user