B2017-036 - Fixed logic to account for Section Continue Message. Found in Automated Testing

This commit is contained in:
Rich 2017-03-02 15:14:28 +00:00
parent 67df417088
commit a958f403d8

View File

@ -1109,6 +1109,12 @@ namespace Volian.Print.Library
SectionConfig sch = MyItemInfo.ActiveSection.MyConfig as SectionConfig;
// B2016-266 Only set SectionTitleContinued1 if the format supports section continue messages
bool doSectionTitleContinued1 = (sch == null || sch.Section_PrintHdr == "Y") && !MyItemInfo.MyDocStyle.CancelSectTitle && MyItemInfo.ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.ContinueSectionHeader;
if (doSectionTitleContinued1 && MyItemInfo.ActiveFormat.PlantFormat.FormatData.PrintData.SpecialCaseCalvert)
{
string myMsg = MyItemInfo.MyDocStyle.Continue.Top.Message;
if (myMsg != null && myMsg != "")
doSectionTitleContinued1 = false;
}
if (doSectionTitleContinued1) ySpaceOnNextPage1 -= 2 * SixLinesPerInch; // B2016-195: Account for Section Continue Message
ySpaceOnCurPage = ySpaceOnNextPage1;