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:
@@ -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))
|
||||
|
Reference in New Issue
Block a user