From 73ce62d4c84b8432354db2cf09a5501c37ab97d5 Mon Sep 17 00:00:00 2001 From: John Date: Tue, 3 Mar 2015 18:20:01 +0000 Subject: [PATCH] Added a check for Enhanced Backgounds in the CalcStepLevel function --- PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs index 27b59d42..49777906 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs @@ -1125,7 +1125,7 @@ namespace VEPROMS.CSLA.Library // the addition of the parent.IsNote, the note was breaking between 2 ANDs (the 1st AND was a // steplevel of 5, but the 2nd was a steplevel of 4). If something similar is seen with Cautions, // that check could be added. - if (!item.IsRNOPart && !item.IsHigh && (item.MyPrevious == null || item.MyParent.IsNote)) + if (!item.IsRNOPart && !item.IsHigh && (item.MyPrevious == null || (((item.ActiveFormat.PlantFormat.FormatData.PurchaseOptions & E_PurchaseOptions.EnhancedBackgrounds) != E_PurchaseOptions.EnhancedBackgrounds) && item.MyParent.IsNote))) level += firstInc; else firstInc = 0;