diff --git a/PROMS/Volian.Controls.Library/StepItem.cs b/PROMS/Volian.Controls.Library/StepItem.cs index 7090a458..c1d69fce 100644 --- a/PROMS/Volian.Controls.Library/StepItem.cs +++ b/PROMS/Volian.Controls.Library/StepItem.cs @@ -1116,6 +1116,8 @@ namespace Volian.Controls.Library if(parentStepItem.MyRNOStepItems.Count == 0) parentStepItem.MyRNOStepItems = null; } + if (parentStepItem.MyAfterStepItems == null && parentStepItem.MyBeforeStepItems == null && parentStepItem.MyRNOStepItems == null) + parentStepItem.CanExpand = false; } //private void ShowSiblings(string title) //{ @@ -1204,11 +1206,13 @@ namespace Volian.Controls.Library } public void AddSiblingAfter(string text) { + MyStepRTB.SaveText(); ItemInfo newItemInfo = MyItemInfo.InsertSiblingAfter(text); DoAddSiblingAfter(newItemInfo); } public void AddSiblingAfter(int? type) { + MyStepRTB.SaveText(); ItemInfo newItemInfo = MyItemInfo.InsertSiblingAfter("","",type); DoAddSiblingAfter(newItemInfo); }