B2020-043: After insert of step above, resolved transition text was incorrect if tab had step number

This commit is contained in:
2020-04-02 12:58:12 +00:00
parent 9bea938777
commit bdd1b054a4
3 changed files with 21 additions and 13 deletions

View File

@@ -759,7 +759,7 @@ namespace Volian.Controls.Library
{
RefreshTab();
if (_MyAfterEditItems != null) foreach (EditItem chld in _MyAfterEditItems) chld.SetAllTabs();
if (_MyAfterEditItems != null) _MyAfterEditItems[0].SetAllTabs(); // B2020-043: used to loop through all, but then recursion would redo.
if (_MyNextEditItem != null) _MyNextEditItem.SetAllTabs();
// Update the RNO tab if it exists - RHM 20100106
if (_MyRNOEditItems != null) foreach (EditItem chld in _MyRNOEditItems) chld.SetAllTabs();
@@ -1018,6 +1018,11 @@ namespace Volian.Controls.Library
//Console.Write(",\"Parent\",");
}
//_MyTimer.ShowElapsedTimes("DeleteItem");
if (newFocus != null) // B2020-043: Fix transition text when previous text is deleted
{
newFocus.SetAllTabs();
newFocus.MyItemInfo.UpdateTransitionText();
}
return newFocus;
}
@@ -1409,6 +1414,7 @@ namespace Volian.Controls.Library
AddGridIfNeeded(newItemInfo);
AddImageIfNeeded(newItemInfo);
DoAddSiblingBefore(newItemInfo, updateSelection);
newItemInfo.UpdateTransitionText(); // B2020-043: fix transition text when a step is inserted before
if (MyStepPanel.SelectedEditItem is RTBItem)
{
RTBItem rtbi = MyStepPanel.SelectedEditItem as RTBItem;