B2020-101: Add format flag for table pagination

B2020-101: Add format flag around code that was crashing during pagination around a large table
This commit is contained in:
Kathy Ruffing 2020-08-05 12:45:34 +00:00
parent 83ad0120e7
commit 784986f388
10 changed files with 11 additions and 1 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -3808,6 +3808,14 @@ namespace VEPROMS.CSLA.Library
return LazyLoad(ref _PaginateOnFirstSubstep2X, "@PaginateOnFirstSubstep2X");
}
}
private LazyLoad<bool> _PageBreakParentWithTable; // B2020-101: Add format flag for table pagination
public bool PageBreakParentWithTable
{
get
{
return LazyLoad(ref _PageBreakParentWithTable, "@PageBreakParentWithTable");
}
}
private LazyLoad<bool> _UseHalfLines;
public bool UseHalfLines
{

View File

@ -1010,7 +1010,9 @@ namespace Volian.Print.Library
// The following logic will walk up to each parent level to see try and get as many parent step levels on the same page
// as the Table.
// B2020-035 added a null reference check to fix printing crash
if (paraBreak != null && paraBreak.MyItemInfo.IsTable && paraBreak.MyParent.YSize < (yPageSize - (myTopMsgSpace + SixLinesPerInch) - myBottomMsgSpace))
// B2020-101: Proms crashes when trying to keep table with parent when table is very large. Add format flag for Barakah,
// code was added for B2020-032 and only want it for Barakah
if (MyItemInfo.ActiveFormat.MyStepSectionLayoutData.PageBreakParentWithTable && paraBreak != null && paraBreak.MyItemInfo.IsTable && paraBreak.MyParent.YSize < (yPageSize - (myTopMsgSpace + SixLinesPerInch) - myBottomMsgSpace))
{
vlnParagraph tparent = paraBreak.MyParent;
while (!tparent.MyItemInfo.IsHigh && tparent.MyParent.YSize < (yPageSize - (myTopMsgSpace + SixLinesPerInch) - myBottomMsgSpace))