Fix B2016-218: do not allow insert before/after (another RNO) when on an RNO

This commit is contained in:
Kathy Ruffing 2016-09-27 15:50:52 +00:00
parent 6f16095159
commit 72282c3184

View File

@ -59,7 +59,7 @@ namespace Volian.Controls.Library
bool allow = (MyStepPanel.VwMode == E_ViewMode.Edit);
StepTabRibbon str = MyStepPanel.MyStepTabPanel.MyStepTabRibbon;
str.SiblingsButtonsEnabled = allow;
str.InsertButtonsEnabled = allow && !(MyItemInfo.IsProcedure || MyItemInfo.IsSection);
str.InsertButtonsEnabled = allow && !(MyItemInfo.IsProcedure || MyItemInfo.IsSection || MyItemInfo.IsRNOPart);
// do special case for cpystep button: cannot copy an enhanced step:
if (MyItemInfo.IsEnhancedStep) str.SetCopyStepButton(false);
}