From f94a646632a92bfadedbeb2e3c5731794e464361 Mon Sep 17 00:00:00 2001 From: Kathy Date: Tue, 10 Jan 2012 14:39:41 +0000 Subject: [PATCH] --- PROMS/DataLoader/Sections.cs | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/PROMS/DataLoader/Sections.cs b/PROMS/DataLoader/Sections.cs index 62ed8aab..ea8c0102 100644 --- a/PROMS/DataLoader/Sections.cs +++ b/PROMS/DataLoader/Sections.cs @@ -425,7 +425,7 @@ namespace DataLoader // ||`----------- ALWAYS leave blank // |`------------ Step Section Header marker // `------------- Internal section number (starts at A) - + char cbittst = sequence.PadRight(10)[8]; if (step.Substring(1, 1) == "0") { // if this section has the original edit section flag (sequence[2]) save the id. @@ -449,16 +449,10 @@ namespace DataLoader { ci.AddItem("Step", "LnkEnh", "Y"); } - char cbittst = sequence.PadRight(10)[8]; if (cbittst == ' ') cbittst = '\0'; else { - // determine if TOC element (!exist = N) - if ((cbittst & TOC) > 1) - { - ci.AddItem("Section", "TOC", "Y"); - } // determine if autogenerated section (!exist = N) if ((cbittst & AUTOGEN) > 1) { @@ -490,6 +484,17 @@ namespace DataLoader ci.AddItem("SubSection", "AutoIndent", "N"); } } + if (cbittst == ' ') + cbittst = '\0'; + else + { + // Both step & word doc sections can be in toc + // determine if TOC element (!exist = N) + if ((cbittst & TOC) > 1) + { + ci.AddItem("Section", "TOC", "Y"); + } + } if (!didsub && sequence.Substring(4, 1) == "N") { ci.AddItem("SubSection", "PH", "N");