From 9f8d070e3469f76378771ad4c87e8a59a42d4287 Mon Sep 17 00:00:00 2001 From: Rich Date: Tue, 6 Oct 2020 20:38:30 +0000 Subject: [PATCH] Limit Right Indent to Ginna --- PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs index f0ed2acc..37314b67 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs @@ -867,9 +867,12 @@ namespace VEPROMS.CSLA.Library if (sc == null || sc.Section_WordMargin == "N") { AdjustMargins(myDocStyle, myDoc, true); - // B20200-122 Reset RightIndent to zero if it is set + // B2020-122 Reset RightIndent to zero if it is set AP Enhanced Background Documents/AP-RHR.2 + // B2020-136 for Ginna (RGE) only. Causes problems for WCN Training/APs/AP30E-002 myDoc.Application.Selection.WholeStory(); - if(myDoc.Application.Selection.ParagraphFormat.RightIndent != 0) + if(myDoc.Application.Selection.ParagraphFormat.RightIndent != 0 + && (sect.ActiveFormat.Name.StartsWith("RGE") + || sect.ActiveFormat.Name.StartsWith("Ginna"))) myDoc.Application.Selection.ParagraphFormat.RightIndent = 0; } else