From 0910a2deb5354f732894f93e6f3f06a50f0b586c Mon Sep 17 00:00:00 2001 From: Kathy Date: Tue, 12 Jul 2016 13:19:16 +0000 Subject: [PATCH] Fix B2016-164: Calvert Alarms wrapping of title with text below paragraphs --- PROMS/Volian.Print.Library/vlnParagraph.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index f6cf20ba..1fe078e6 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -4913,10 +4913,12 @@ namespace Volian.Print.Library } else { - //Adjuust Indent for Wolf Creek Background format flag + //Adjust Indent for Wolf Creek Background format flag float indentBG2 = itemInfo.IsPartOfBackgroundStep() ? itemInfo.FormatStepData.Font.CharsToTwips * 2 : 0; XOffset = childindent + MyParent.XOffset+ indentBG2;//(itemInfo.FormatStepData.Font.CharsToTwips * 2); - Width = (float)itemInfo.MyDocStyle.Layout.PageWidth - (float)itemInfo.MyDocStyle.Layout.LeftMargin - indentBG2; + // B2016-164: Added the following 'if' so that the width is not recalculated if in the alarm format & the parent has a template + if (!itemInfo.ActiveFormat.PlantFormat.FormatData.PrintData.SpecialCaseCalvertAlarm && !!UseTemplateWidthOrXOff(itemInfo.MyParent)) + Width = (float)itemInfo.MyDocStyle.Layout.PageWidth - (float)itemInfo.MyDocStyle.Layout.LeftMargin - indentBG2; } return; }