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:
2020-08-05 12:45:34 +00:00
parent 83ad0120e7
commit 784986f388
10 changed files with 11 additions and 1 deletions

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))