Calvert Alarms: fix line spacing around text for Caution1 step type (Annunciator Window)

This commit is contained in:
Kathy Ruffing 2014-09-03 13:56:40 +00:00
parent 3ff3ea45c9
commit ca30984031

View File

@ -197,7 +197,9 @@ namespace Volian.Print.Library
if (childItemInfo.FormatStepData.OneLineBeforeTab) ln++; if (childItemInfo.FormatStepData.OneLineBeforeTab) ln++;
if (!boxHLS || (boxHLS && !childItemInfo.HasCautionOrNote)) if (!boxHLS || (boxHLS && !childItemInfo.HasCautionOrNote))
{ {
if (!formatInfo.PlantFormat.FormatData.PrintData.SpecialCaseCalvertAlarm) // note that in the following line of code, the Calvert Alarms' caution1 is their annunciator window
// so it needs the extra lines as defined by 'ln' or the text will be too close to the top of the box.
if (!formatInfo.PlantFormat.FormatData.PrintData.SpecialCaseCalvertAlarm || iChildItemInfo.IsCaution1)
yoff += ln * vlnPrintObject.SixLinesPerInch; yoff += ln * vlnPrintObject.SixLinesPerInch;
else else
yoff += vlnPrintObject.SixLinesPerInch; yoff += vlnPrintObject.SixLinesPerInch;