Bug Fix 2015-084 for Ginn’a Attachment format. Fixed logic that determines if a group of Cautions / Notes get a bullet.

This commit is contained in:
John Jenko 2015-06-24 14:28:01 +00:00
parent 5b527ff533
commit 791549a700

View File

@ -3962,8 +3962,10 @@ namespace VEPROMS.CSLA.Library
// treat cautions and notes as different if they are all NOT exactly the same type
if (ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.OnlyBulletSameCautionNoteType)
{
if (MyPrevious != null && MyPrevious.MyContent.Type != MyContent.Type) return true;
if (NextItem != null && NextItem.MyContent.Type != MyContent.Type) return true;
if (MyPrevious != null && MyPrevious.MyContent.Type != MyContent.Type &&
((MyPrevious.IsCaution && this.IsCaution) || (MyPrevious.IsNote && this.IsNote))) return true;
if (NextItem != null && NextItem.MyContent.Type != MyContent.Type &&
((NextItem.IsCaution && this.IsCaution) || (NextItem.IsNote && this.IsNote))) return true;
}
if (!FormatStepData.MixCautionsAndNotes) return false;