For compressed step printing, include bottom message size when determining if it can compress

This commit is contained in:
Kathy Ruffing 2015-03-18 15:28:02 +00:00
parent fda1ed9a12
commit a66144e181

View File

@ -947,7 +947,7 @@ namespace Volian.Print.Library
paraBreak = paraBreak.ChildrenBelow[0];
float ySpaceOnNextPage1 = yPageSize - (myTopMsgSpace + (yEndMsg == 0 ? SixLinesPerInch : 0)); // Allow for continue message and blank line.
ySpaceOnNextPage1 -= accountForSmartTemplateHeader;
if (MyItemInfo.ActiveFormat.MyStepSectionLayoutData.CompressSteps && ySpaceOnNextPage1 == ySpaceOnCurPage)
if (MyItemInfo.ActiveFormat.MyStepSectionLayoutData.CompressSteps && ySpaceOnNextPage1 == ySpaceOnCurPage+myBottomMsgSpace)
{
float ySpaceAt7LPI = ((ySpaceOnCurPage - accountForCalvertAlarmConditionResponseFooter) * SixLinesPerInch / _SevenLinesPerInch) - _SevenLinesPerInch;
vlnParagraph paraBreak7 = FindPageBreak(yStart, ySpaceAt7LPI, yLowerLimit,