B2021-109 Long Section Titles were printing into the page numbers on the Table of Contents.

This commit is contained in:
John Jenko 2021-10-04 15:27:07 +00:00
parent d6175879a8
commit 613e8384b8

View File

@ -1539,7 +1539,7 @@ namespace Volian.Print.Library
else
rtfText = GetRtfToC(tocSecTitle, tOfC);
Paragraph myparagraphSecTitle = vlnPrintObject.RtfToParagraph(rtfText); // section title
width = secPagePos - adjSecTitlePos - 6;
width = secPagePos - adjSecTitlePos - ((tOfC.TofCPageNumAlign.ToUpper() == "RIGHT") ? 18 : 6);// B2021-109 proper adjustment of section title width - copied from leader dots lenth calcuation below
float savTitleWid = width;
// for South Texas Table of Contents
// if there is no section number (we put a blank in tmptxt) then move the section title over to the section number position