B2020-047 forced pagination causing single step part to print on a page all by itself. Westinghouse house data BDS-101 Attachment 1

This commit is contained in:
2020-04-01 20:27:09 +00:00
parent dc304f984f
commit 9bea938777
2 changed files with 4 additions and 3 deletions

View File

@@ -1415,10 +1415,10 @@ namespace Volian.Print.Library
yTopMargin = _PointsPerPage - (float)MyItemInfo.ActiveSection.MyDocStyle.Layout.TopMargin;
yBottomMargin = Math.Max(0, yTopMargin - (float)MyItemInfo.ActiveSection.MyDocStyle.Layout.PageLength);
}
else if (MyPageHelper.PrintedSectionPage > 0)
else // B2020-047 move check of PrintSectionPage to after the ResetSvg
{
MyPageHelper.ResetSvg();
if (MyItemInfo.ActiveSection != null && (MyItemInfo.ActiveSection.MyDocStyle.StructureStyle.Style & E_DocStructStyle.DSS_PrintSectOnFirst) == E_DocStructStyle.DSS_PrintSectOnFirst)
if (MyPageHelper.PrintedSectionPage > 0 && MyItemInfo.ActiveSection != null && (MyItemInfo.ActiveSection.MyDocStyle.StructureStyle.Style & E_DocStructStyle.DSS_PrintSectOnFirst) == E_DocStructStyle.DSS_PrintSectOnFirst)
{
yTopMargin = _PointsPerPage - (float)MyItemInfo.ActiveSection.MyDocStyle.Layout.TopMargin + MyPageHelper.PrintedSectionPage;
MyPageHelper.YTopMargin = yTopMargin;