Allow for multi-line step designators

This commit is contained in:
John Jenko 2015-05-21 17:59:53 +00:00
parent 97225f61b8
commit 61507043d4

View File

@ -283,7 +283,8 @@ namespace Volian.Print.Library
childItemInfo.IsCaution1 && childItemInfo.SameRowAsParent) childItemInfo.IsCaution1 && childItemInfo.SameRowAsParent)
{ {
// Save the Step Designator information // Save the Step Designator information
_StepDesignator = childItemInfo.DisplayText; // SameRowAsParentMultiLine currently used in Comanche Peak EOP and Flex formats - handles a hard return in the caution type
_StepDesignator = ((childItemInfo.SameRowAsParentMultiLines) ? childItemInfo.MulitLineStepDesignatorDisplayText : childItemInfo.DisplayText);
int typ = ((int)childItemInfo.MyContent.Type) % 10000; int typ = ((int)childItemInfo.MyContent.Type) % 10000;
_StepDesignatorColumn = formatInfo.PlantFormat.FormatData.StepDataList[typ].ColOverride; _StepDesignatorColumn = formatInfo.PlantFormat.FormatData.StepDataList[typ].ColOverride;
E_Style es = (E_Style)childItemInfo.FormatStepData.Font.Style; E_Style es = (E_Style)childItemInfo.FormatStepData.Font.Style;