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);