Fix overwriting of section title

This commit is contained in:
Kathy Ruffing 2013-07-18 12:47:37 +00:00
parent 8f576d59df
commit e96c7bad8a

View File

@ -1437,7 +1437,7 @@ namespace Volian.Print.Library
|| !itemInfo.Steps[0].FormatStepData.StepLayoutData.AlignWithParentTab))) || !itemInfo.Steps[0].FormatStepData.StepLayoutData.AlignWithParentTab)))
{ {
bool doprint = true; bool doprint = true;
if (MyItemInfo.IsSection) // if on a section, be sure that section title should print. if (MyItemInfo.IsSection && formatInfo.PlantFormat.FormatData.SectData.UseMetaSections) // if on a section, be sure that section title should print.
{ {
SectionConfig sch = MyItemInfo.MyConfig as SectionConfig; SectionConfig sch = MyItemInfo.MyConfig as SectionConfig;
if (sch != null && sch.Section_PrintHdr != "Y") doprint = false; if (sch != null && sch.Section_PrintHdr != "Y") doprint = false;