From f0a43e19f4a8586920c7dd7183dc8585030d8615 Mon Sep 17 00:00:00 2001 From: Rich Date: Tue, 4 Dec 2018 13:28:11 +0000 Subject: [PATCH] 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 --- PROMS/Volian.Print.Library/vlnParagraph.cs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index 43ae79be..74bb0da2 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -329,7 +329,20 @@ namespace Volian.Print.Library yoff = Math.Max(para.YBottom, para.YBottomMost) + vlnPrintObject.SixLinesPerInch; // increment the y offset if not doing the ComponentTableFormat 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 para.YBottomMost += para.YBottomMostAdjust; if (box != null && childItemInfo.FormatStepData != null && childItemInfo.FormatStepData.BoxIt)