For compressed step printing, include bottom message size when determining if it can compress
This commit is contained in:
parent
fda1ed9a12
commit
a66144e181
@ -947,7 +947,7 @@ namespace Volian.Print.Library
|
|||||||
paraBreak = paraBreak.ChildrenBelow[0];
|
paraBreak = paraBreak.ChildrenBelow[0];
|
||||||
float ySpaceOnNextPage1 = yPageSize - (myTopMsgSpace + (yEndMsg == 0 ? SixLinesPerInch : 0)); // Allow for continue message and blank line.
|
float ySpaceOnNextPage1 = yPageSize - (myTopMsgSpace + (yEndMsg == 0 ? SixLinesPerInch : 0)); // Allow for continue message and blank line.
|
||||||
ySpaceOnNextPage1 -= accountForSmartTemplateHeader;
|
ySpaceOnNextPage1 -= accountForSmartTemplateHeader;
|
||||||
if (MyItemInfo.ActiveFormat.MyStepSectionLayoutData.CompressSteps && ySpaceOnNextPage1 == ySpaceOnCurPage)
|
if (MyItemInfo.ActiveFormat.MyStepSectionLayoutData.CompressSteps && ySpaceOnNextPage1 == ySpaceOnCurPage+myBottomMsgSpace)
|
||||||
{
|
{
|
||||||
float ySpaceAt7LPI = ((ySpaceOnCurPage - accountForCalvertAlarmConditionResponseFooter) * SixLinesPerInch / _SevenLinesPerInch) - _SevenLinesPerInch;
|
float ySpaceAt7LPI = ((ySpaceOnCurPage - accountForCalvertAlarmConditionResponseFooter) * SixLinesPerInch / _SevenLinesPerInch) - _SevenLinesPerInch;
|
||||||
vlnParagraph paraBreak7 = FindPageBreak(yStart, ySpaceAt7LPI, yLowerLimit,
|
vlnParagraph paraBreak7 = FindPageBreak(yStart, ySpaceAt7LPI, yLowerLimit,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user