From 42e05cc3cd1b96a4924277067effcdc2ae23b8ab Mon Sep 17 00:00:00 2001 From: John Date: Thu, 9 Oct 2014 19:41:52 +0000 Subject: [PATCH] Added logic to check previous and next note/caution to see if there should be a tab to the left. --- PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs index b9b95162..ebf74425 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs @@ -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 = ""; + } } }