From a16f1d81109d069758a13ad96826bf1fc5b11473 Mon Sep 17 00:00:00 2001 From: Rich Date: Wed, 12 Oct 2016 16:10:08 +0000 Subject: [PATCH] B2016-227 Use Section Margins for Word Sub-Sections --- PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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;