Fixed logic to correctly determine page break location at the end of a Condition/Response substep.

This commit is contained in:
Rich 2014-08-20 16:26:54 +00:00
parent 77e02fd438
commit 7c26029b92

View File

@ -469,7 +469,7 @@ namespace Volian.Print.Library
paraBreak = paraBreak.MyParent.ChildrenAbove[0];
}
// If the lastbreak was part of a condition response and the location is part of a condition response account for the size of the footer.
if (lastBreak != null && lastBreak.ParentHasCalvertMacro && paraBreak.ParentHasCalvertMacro)
if (lastBreak != null && lastBreak.ParentHasCalvertMacro)
{
paraBreak = FindPageBreak(yStart, ySpaceOnCurPage - 12 * 4, yLowerLimit, myList, paraBreak, yPageSize - (myTopMsgSpace + SixLinesPerInch) - myBottomMsgSpace,
myBottomMsgSpace, MyItemInfo.ActiveFormat.PlantFormat.FormatData.StepDataList[40].ContinueOnly);