Added logic to protect against failures when an invalid transition text is removed.

Added logic to protect against failures when an invalid transition text is selected.
This commit is contained in:
Rich
2013-07-03 15:58:12 +00:00
parent 76710282b4
commit aace632c9b
2 changed files with 6 additions and 0 deletions

View File

@@ -195,6 +195,9 @@ namespace Volian.Controls.Library
// figure out whether at same level, have same parent and have same HLS:
ItemInfo itm1 = _CurTrans.MyItemToID;
ItemInfo itm2 = _CurTrans.MyItemRangeID;
// Invalid existing transition
if (itm2.ActiveParent == null || itm1.ActiveParent == null)
return;
//if (_CurTrans.TranType == 2 && itm1.ItemID == itm2.ItemID) itm2 = itm1.LastSibling;
bool samHLS = itm1.MyHLS.ItemID == itm2.MyHLS.ItemID;
int lev1 = 0;