Fix B2016-164: Calvert Alarms wrapping of title with text below paragraphs

This commit is contained in:
Kathy Ruffing 2016-07-12 13:19:16 +00:00
parent 68f5d12ac3
commit 0910a2deb5

View File

@ -4913,9 +4913,11 @@ namespace Volian.Print.Library
}
else
{
//Adjuust Indent for Wolf Creek Background format flag
//Adjust Indent for Wolf Creek Background format flag
float indentBG2 = itemInfo.IsPartOfBackgroundStep() ? itemInfo.FormatStepData.Font.CharsToTwips * 2 : 0;
XOffset = childindent + MyParent.XOffset+ indentBG2;//(itemInfo.FormatStepData.Font.CharsToTwips * 2);
// B2016-164: Added the following 'if' so that the width is not recalculated if in the alarm format & the parent has a template
if (!itemInfo.ActiveFormat.PlantFormat.FormatData.PrintData.SpecialCaseCalvertAlarm && !!UseTemplateWidthOrXOff(itemInfo.MyParent))
Width = (float)itemInfo.MyDocStyle.Layout.PageWidth - (float)itemInfo.MyDocStyle.Layout.LeftMargin - indentBG2;
}
return;