diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs index a5b88165..6815bda8 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs @@ -527,8 +527,10 @@ namespace VEPROMS.CSLA.Library itemInfo.ActiveParent = itemParent; itemInfo.MyParent = itemParent as ItemInfo; // Fix for Active Section when printing. BGE_OI4 OI27D-2 - //itemInfo.ActiveSection = (itemInfo as SectionInfo) ?? sectionInfo;// - possible fix for not accessing correct format - itemInfo.ActiveSection = sectionInfo; + if (itemInfo.IsSection && !itemInfo.IsStepSection) // If a Word Section use the current section B2016-227 + itemInfo.ActiveSection = (itemInfo as SectionInfo) ?? sectionInfo;// - possible fix for not accessing correct format + else + itemInfo.ActiveSection = sectionInfo;// If not a Word Section use the parent itemInfo.ActiveFormat = itemInfo.MyContent.MyFormat != null ? itemInfo.MyContent.MyFormat : sectionInfo == null ? itemParent.ActiveFormat : sectionInfo.ActiveFormat; itemInfo.MyProcedure = procInfo; itemInfo.MyDocVersion = docVersionInfo;