From 37afbace9060aa93c5b264bd09b6297803cd6256 Mon Sep 17 00:00:00 2001 From: John Date: Tue, 13 May 2014 21:13:37 +0000 Subject: [PATCH] Added SpecialCaseWestinghouse flag Added SpecialCaseWestinghouse flag to prevent using logic that cause the sub-section to print in the page header --- PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs | 8 ++++++++ PROMS/Volian.Print.Library/vlnParagraph.cs | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs b/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs index c467e4b8..62be36bc 100644 --- a/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs +++ b/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs @@ -745,6 +745,14 @@ namespace VEPROMS.CSLA.Library return LazyLoad(ref _PagelistChangeIDsWithCommas, "@PagelistChangeIDsWithCommas"); } } + private LazyLoad _SpecialCaseWestinghouse; + public bool SpecialCaseWestinghouse + { + get + { + return LazyLoad(ref _SpecialCaseWestinghouse, "@SpecialCaseWestinghouse"); + } + } } #endregion #region VersionIdText diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index 2be871ad..923b69ae 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -833,7 +833,7 @@ namespace Volian.Print.Library { // For BGE, the very first subsection's pagelist items were not correct - the section/meta section titles were // at the wrong level. Reset the page helper's section. - if (MyItemInfo.IsSection && MyItemInfo.MyPrevious == null && MyItemInfo.MyParent.IsSection) + if (MyItemInfo.IsSection && MyItemInfo.MyPrevious == null && MyItemInfo.MyParent.IsSection && !MyItemInfo.ActiveFormat.PlantFormat.FormatData.PrintData.SpecialCaseWestinghouse) { MyPageHelper.MySection = MyItemInfo as SectionInfo; MyPageHelper.ResetSvg();