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)