From d6c42e144b75a100a60661c1b0eb7079caec4a5a Mon Sep 17 00:00:00 2001 From: Kathy Date: Tue, 24 Aug 2021 13:25:17 +0000 Subject: [PATCH] B2021-083: Create PDF not available on Ribbon for viewers --- PROMS/Volian.Controls.Library/StepTabRibbon.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Controls.Library/StepTabRibbon.cs b/PROMS/Volian.Controls.Library/StepTabRibbon.cs index 1b7bec16..0dee3df9 100644 --- a/PROMS/Volian.Controls.Library/StepTabRibbon.cs +++ b/PROMS/Volian.Controls.Library/StepTabRibbon.cs @@ -700,7 +700,9 @@ namespace Volian.Controls.Library if (_MyStepRTB == null) return; // if we are in view mode or the edit window is empty, then don't allow inserting steps/substeps, // page breaks, copy step, nor creating a pdf - bool allow = (_MyStepRTB.TextLength > 0 && (MyEditItem == null || MyEditItem.MyStepPanel.VwMode == E_ViewMode.Edit)); + // B2021-083: Create PDF button on ribbon was disabled for reviewer (removed code). Note that this allow + // is only used for the Create Pdf button now - code has changed for any other use. + bool allow = (_MyStepRTB.TextLength > 0); //// turn ribbon items on/off base on whether there is text in the edit window //rbnSiblings.Enabled = rbnParagraph.Enabled = rbnStepParts.Enabled = allow;