B2015_014: pagination incorrect for CAT EP Backgrounds/”Title with Text Below” & “Paragraph” split

This commit is contained in:
Kathy Ruffing 2016-03-24 14:50:36 +00:00
parent 69073bbc90
commit 5330881483

View File

@ -5595,6 +5595,16 @@ namespace Volian.Print.Library
else
level = 1;
}
// For B2015-014, some migrated data for background documents had the TitleWithTextBelow with associated paragraphs
// as siblings rather than children. Pagination was sometimes putting the TitleWithTextBelow on one page and the
// paragraphs on next. The following code checks thse types, if in enhanced documents but not the Short Form Deviations.
if (paraLoc.MyParagraph.MyItemInfo.ActiveFormat != null
&& ((paraLoc.MyParagraph.MyItemInfo.ActiveFormat.PlantFormat.FormatData.PurchaseOptions.Value & E_PurchaseOptions.EnhancedBackgrounds) == E_PurchaseOptions.EnhancedBackgrounds)
|| (((paraLoc.MyParagraph.MyItemInfo.ActiveFormat.PlantFormat.FormatData.PurchaseOptions.Value & E_PurchaseOptions.EnhancedDeviations) == E_PurchaseOptions.EnhancedDeviations)
&& paraLoc.MyParagraph.MyItemInfo.ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.StepSectionLayoutData.EnhancedShortFormDev))
{
if (!paraLoc.MyParagraph.MyItemInfo.IsTitle && paraLoc.MyParagraph.MyItemInfo.MyPrevious != null && paraLoc.MyParagraph.MyItemInfo.MyPrevious.FormatStepData.Type == "TitleWithTextBelow") level = 0;
}
myList.Add(level, paraLoc.YTop, paraLoc.MyParagraph);
}
return myList;