Added a check for Enhanced Backgounds in the CalcStepLevel function

This commit is contained in:
John Jenko 2015-03-03 18:20:01 +00:00
parent 8b8176510f
commit 73ce62d4c8

View File

@ -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 // 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, // steplevel of 5, but the 2nd was a steplevel of 4). If something similar is seen with Cautions,
// that check could be added. // 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; level += firstInc;
else else
firstInc = 0; firstInc = 0;