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,11 +3372,17 @@ namespace VEPROMS.CSLA.Library
else if (this.NextItem == null)
tbformat = "";
}
if (!this.FormatStepData.SeparateBox &&
(tbformat == nextTbFormat || tbformat == prevTbFormat))
if (!this.FormatStepData.SeparateBox)
{
tbformat = ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.IdentB;
TabToIdentBAdjustFont();
if (tbformat == nextTbFormat || tbformat == prevTbFormat)
{
tbformat = ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.IdentB;
TabToIdentBAdjustFont();
}
else if ((nextTbFormat == null || tbformat != nextTbFormat) && (prevTbFormat == null || tbformat != prevTbFormat))
{
tbformat = "";
}
}
}