Logic was changed so the a Word sub-section would not cause mixing of data from a preceeding step section and a following step section

This commit is contained in:
Rich 2018-12-04 13:28:11 +00:00
parent 429064af6b
commit f0a43e19f4

View File

@ -329,7 +329,20 @@ namespace Volian.Print.Library
yoff = Math.Max(para.YBottom, para.YBottomMost) + vlnPrintObject.SixLinesPerInch; yoff = Math.Max(para.YBottom, para.YBottomMost) + vlnPrintObject.SixLinesPerInch;
// increment the y offset if not doing the ComponentTableFormat // increment the y offset if not doing the ComponentTableFormat
else if (!para.UseTemplateKeepOnCurLine(childItemInfo)) else if (!para.UseTemplateKeepOnCurLine(childItemInfo))
yoff = para.YBottomMost; {
// Don't set to zero after a Word Section
// Otherwise the step section output will overlap previous step section output
// if in a sub section.
// To see the problem, create a section with three subsections.
// First section a multiple page step section
// Second section a word section
// Third section a step section
// skip the logic in the next three lines. (if to else)
if (para.YBottomMost > 0)
yoff = para.YBottomMost;
else
Console.WriteLine("ERROR Would have changed yoff from {0} to zero",yoff);
}
// don't adjust YBottomost until after yoff is set for the RNO Separator // don't adjust YBottomost until after yoff is set for the RNO Separator
para.YBottomMost += para.YBottomMostAdjust; para.YBottomMost += para.YBottomMostAdjust;
if (box != null && childItemInfo.FormatStepData != null && childItemInfo.FormatStepData.BoxIt) if (box != null && childItemInfo.FormatStepData != null && childItemInfo.FormatStepData.BoxIt)