From 548b845f62f4f1834ca21c3f7ef22face5f514ec Mon Sep 17 00:00:00 2001 From: John Jenko Date: Fri, 22 Nov 2024 10:10:57 -0500 Subject: [PATCH] B2023-074 - Fixed printing a section title, via the section properties check box, on a two-column step editor section. --- PROMS/Volian.Print.Library/vlnParagraph.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index 35d5d787..381a3c95 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -6887,7 +6887,13 @@ namespace Volian.Print.Library } else if (itemInfo.IsSection) { - Width = ToInt(formatInfo.MyStepSectionLayoutData.WidSTablePrint, maxRNO); + // B2023-074 The itemInfo we are processing is a section (number and title). Change maxRNO to zero to getting the width. + // The Width is used when printing the section number and title (when the check box on the properties page is checked) + // and is assumemed the section is a single column section (maxRNO = 0) and uses the format variable WidSTablePrint + // which holds the widths for then the section has one column, two column, or three column. + // For printing section numbers and titles like this, we always want to accomodate for lone section title text. + // So the initial width should always be set to the one column width value so that it can spane across the page. + Width = ToInt(formatInfo.MyStepSectionLayoutData.WidSTablePrint, 0); float adjwidths = 0; adjwidths = AdjustMetaWidth(itemInfo, formatInfo, adjwidths, false); Width += (adjwidths + _WidthAdjust); -- 2.47.2