Refresh NextItems when looking for Range transition Item

Dispose of steps as they are imported.
This commit is contained in:
Rich
2016-08-03 15:12:04 +00:00
parent 4293219f16
commit 56ab02c3f7
2 changed files with 139 additions and 127 deletions

View File

@@ -1205,6 +1205,8 @@ namespace VEPROMS.CSLA.Library
Dictionary<int, ItemInfo> rangeAncestors = GetAncestors(tb._RangeItem);
tb.AppendPrefix();
bool usedRangeAncestor = false;
// Refresh Next Items
tb._ToItem.RefreshNextItems();
ItemInfo next = GetNextItem(tb._ToItem, rangeAncestors, ref usedRangeAncestor);
string lastTab = Tab(tb._RangeItem, tb._RangeItem.ActiveFormat.PlantFormat.FormatData.TransData.TStepNoFlag);
while (next.ItemID != tb._RangeItem.ItemID)