From 885964885c52dbb1578884a15c87e03bf094f745 Mon Sep 17 00:00:00 2001 From: Kathy Date: Mon, 29 Jul 2013 12:05:46 +0000 Subject: [PATCH] --- PROMS/Volian.Print.Library/vlnParagraph.cs | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index b2b14538..9d62bbbf 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -1126,16 +1126,19 @@ namespace Volian.Print.Library bool doprint = true; if (itemInfo.IsSection) { - SectionConfig sch = MyItemInfo.MyConfig as SectionConfig; - if (!(ShowSectionTitles - && !MyItemInfo.MyDocStyle.CancelSectTitle - && !MyItemInfo.MyDocStyle.SpecialStepsFoldout) - && - (sch != null && sch.Section_PrintHdr != "Y")) // || !MyItemInfo.ActiveFormat.PlantFormat.FormatData.SectData.UseMetaSections)) + if (ShowSectionTitles + && !MyItemInfo.MyDocStyle.CancelSectTitle + && !MyItemInfo.MyDocStyle.SpecialStepsFoldout) // Don't ouput the Step Section title { - doprint = false; - YTopMost = 0; + SectionConfig sch = MyItemInfo.MyConfig as SectionConfig; + if (sch != null && sch.Section_PrintHdr != "Y") + { + doprint = false; + YTopMost = 0; + } } + else + doprint = false; } if (doprint && itemInfo.IsSection && !itemInfo.MyDocStyle.CancelSectTitle && itemInfo.MyTab.Text.ToUpper() != "FOLDOUT") {