From 6a1c9473a55708238bfba2674dba1b8d0bda9e16 Mon Sep 17 00:00:00 2001 From: Kathy Date: Fri, 15 Jul 2016 11:16:50 +0000 Subject: [PATCH] B2016-168: Deviation Document printing: column widths were not wide enough --- PROMS/Volian.Print.Library/vlnParagraph.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index 1fe078e6..d8cbd8a4 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -4917,7 +4917,8 @@ namespace Volian.Print.Library float indentBG2 = itemInfo.IsPartOfBackgroundStep() ? itemInfo.FormatStepData.Font.CharsToTwips * 2 : 0; XOffset = childindent + MyParent.XOffset+ indentBG2;//(itemInfo.FormatStepData.Font.CharsToTwips * 2); // 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)) + // B2016-168: The fix for 164 broke deviation document printing. The if statement was fixed for both: + if (!itemInfo.ActiveFormat.PlantFormat.FormatData.PrintData.SpecialCaseCalvertAlarm || !UseTemplateWidthOrXOff(itemInfo.MyParent)) Width = (float)itemInfo.MyDocStyle.Layout.PageWidth - (float)itemInfo.MyDocStyle.Layout.LeftMargin - indentBG2; } return;