From 7ecc3e578f0e0079a7cc673771ccd18c50ee03d3 Mon Sep 17 00:00:00 2001 From: John Jenko Date: Thu, 28 Sep 2023 14:17:47 -0400 Subject: [PATCH] B2023-099 Restore the original calculation for finding he center point of the procedure and section END messages. --- PROMS/Volian.Print.Library/vlnParagraph.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index 7d274bf9..8c76267a 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -2339,7 +2339,10 @@ namespace Volian.Print.Library { // Center the bottom message float wtpm = (float)docstyle.Layout.PageWidth - (float)docstyle.Layout.LeftMargin; //B2022-126 was using the wrong font definition to calaculate the centering position - xpos = XOffsetBox + (float)docstyle.Layout.LeftMargin + (wtpm - (myMsg.Length * docstyle.End.Font.CharsToTwips)) / 2; + // ** B2023-099 commented out and restored the previous calculation. This caused problems centering the END message in Ginna + // their END message prints with the Prestige Elite font but he centering calc uses Courier New + //xpos = XOffsetBox + (float)docstyle.Layout.LeftMargin + (wtpm - (myMsg.Length * docstyle.End.Font.CharsToTwips)) / 2; + xpos = XOffsetBox + (float)docstyle.Layout.LeftMargin + (wtpm - (myMsg.Length * MyItemInfo.FormatStepData.Font.CharsToTwips)) / 2; xpos = Math.Max(xpos, XOffsetBox + (float)docstyle.Layout.LeftMargin); vlnText vttmp = new vlnText(cb, this, myMsg, myMsg, xpos, msg_yLocation, docstyle.End.Font); MyPageHelper.BottomMessage.Add(vttmp); -- 2.47.2