Added logic to check previous and next note/caution to see if there should be a tab to the left.

This commit is contained in:
John Jenko 2014-10-09 19:41:52 +00:00
parent a4f0a04c5d
commit 42e05cc3cd

View File

@ -3372,12 +3372,18 @@ namespace VEPROMS.CSLA.Library
else if (this.NextItem == null) else if (this.NextItem == null)
tbformat = ""; tbformat = "";
} }
if (!this.FormatStepData.SeparateBox && if (!this.FormatStepData.SeparateBox)
(tbformat == nextTbFormat || tbformat == prevTbFormat)) {
if (tbformat == nextTbFormat || tbformat == prevTbFormat)
{ {
tbformat = ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.IdentB; tbformat = ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.IdentB;
TabToIdentBAdjustFont(); TabToIdentBAdjustFont();
} }
else if ((nextTbFormat == null || tbformat != nextTbFormat) && (prevTbFormat == null || tbformat != prevTbFormat))
{
tbformat = "";
}
}
} }
return tbformat; return tbformat;