From c9204fc5789af19658f0df01210b463b3633873c Mon Sep 17 00:00:00 2001 From: Kathy Date: Mon, 24 Oct 2022 13:27:08 +0000 Subject: [PATCH] =?UTF-8?q?B2022-130:=20Barakah=20=E2=80=93=20Printing=20o?= =?UTF-8?q?f=20Warning=20box=20line=20into=20above=20text=20line?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PROMS/Volian.Print.Library/vlnParagraph.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index fc54c3db..60982a30 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -208,6 +208,12 @@ namespace Volian.Print.Library box.MyBox = formatInfo.PlantFormat.FormatData.BoxList[(int)bxIndx]; if (box.MyBox != null) { + // B2022-130: Barakah warning box prints on bottom of section title if warning is on first HLS + if (box.MyBox.ThickDouble && childItemInfo.MyParent != null && childItemInfo.MyParent.IsHigh && childItemInfo.MyParent.ItemID == childItemInfo.MyParent.FirstSibling.ItemID) + { + if (!childItemInfo.MyParent.MyParent.MyDocStyle.CancelSectTitle) + yoff += vlnPrintObject.SixLinesPerInch; + } box.YOffset = yoff; int ln = 1; // a format flag determines whether there is a space before the note/caution. if (childItemInfo.FormatStepData.OneLineBeforeTab) ln++;