From 8c84a8b96df95b52ac5f2abf0761eb6bbf8e2f79 Mon Sep 17 00:00:00 2001 From: Kathy Date: Wed, 30 May 2018 13:02:35 +0000 Subject: [PATCH] C2018-005: Change Step Type button on the ribbon should be disabled when on Procedure or Section in editor --- PROMS/Volian.Controls.Library/StepTabRibbon.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PROMS/Volian.Controls.Library/StepTabRibbon.cs b/PROMS/Volian.Controls.Library/StepTabRibbon.cs index ad26bdbb..97bbbf45 100644 --- a/PROMS/Volian.Controls.Library/StepTabRibbon.cs +++ b/PROMS/Volian.Controls.Library/StepTabRibbon.cs @@ -1476,6 +1476,8 @@ namespace Volian.Controls.Library // B2016-237 added context menu item to change image size btnCMImgSz.Enabled = MyEditItem.MyItemInfo.IsFigure && (MyEditItem.MyItemInfo.MyContent.MyImage != null || MyEditItem.MyItemInfo.MyContent.Text.ToUpper().Contains("#LINK")); if (MyItemInfo.IsSupInfoPart) btnInsAfter.Enabled = btnInsAftH.Enabled = btnInsBefore.Enabled = btnInsBefH.Enabled = false; + // C2018-005: disable the change step type button when on procedure or section: + if (MyItemInfo.IsProcedure || MyItemInfo.IsSection) btnCMChgStep.Enabled = btnChgTyp.Enabled = false; } public void SetButtonAndMenuEnabling(bool docontextmenus) {