Handle new error when a deleted step is attempted to be copied.

Added logic to handle an invalid transition (a transition to a disconnected step.
This commit is contained in:
Rich
2014-08-05 19:02:02 +00:00
parent 059041c546
commit b5ded05838
3 changed files with 30 additions and 5 deletions

View File

@@ -280,7 +280,7 @@ namespace Volian.Controls.Library
if (args.MyLinkText.LinkInfoText.IndexOf("Transition") > -1)
{
ItemInfo item = args.MyLinkText.MyTranToItemInfo;
if (item == null || (item.PreviousID == null && item.ItemPartCount == 0 && item.ItemDocVersionCount == 0))
if (item == null || item.MyDocVersion == null || (item.PreviousID == null && item.ItemPartCount == 0 && item.ItemDocVersionCount == 0))
{
MessageBox.Show("This transition is invalid", "Invalid Transition", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
return; // Not a valid transition