From eb2fe58740d7655cab6e64c27eb98e23c3a81ea6 Mon Sep 17 00:00:00 2001 From: Rich Date: Wed, 2 Sep 2020 13:13:48 +0000 Subject: [PATCH] Reset the Right Indent to zero. --- PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs index b9a3f197..f0ed2acc 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs @@ -867,6 +867,10 @@ 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 + myDoc.Application.Selection.WholeStory(); + if(myDoc.Application.Selection.ParagraphFormat.RightIndent != 0) + myDoc.Application.Selection.ParagraphFormat.RightIndent = 0; } else adjustMargins = false; // Use absolute positions