From 6b4f9a4ac3f1145339fac51582337961490ea248 Mon Sep 17 00:00:00 2001 From: Kathy Date: Wed, 16 Apr 2014 15:16:51 +0000 Subject: [PATCH] If an auto Table of Contents page, initialize Word/Step section boxes and flags to Word section. --- PROMS/VEPROMS User Interface/frmSectionProperties.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/PROMS/VEPROMS User Interface/frmSectionProperties.cs b/PROMS/VEPROMS User Interface/frmSectionProperties.cs index 3335ed27..1b70eae5 100644 --- a/PROMS/VEPROMS User Interface/frmSectionProperties.cs +++ b/PROMS/VEPROMS User Interface/frmSectionProperties.cs @@ -60,6 +60,15 @@ namespace VEPROMS // if creating a new section, enable the StepSect and WordSect radio buttons rbStepSect.Enabled = rbWordSect.Enabled = !(ii.HasWordContent || ii.HasStepContent); + // if this is an auto table of contents (mydocstyle == null if new section, so must check for that first) + if (ii.IsAutoTOCSection) + { + rbWordSect.Checked = true; + rbStepSect.Enabled = false; + rbWordSect.Enabled = false; + _isStepSection = false; + } + // if this has already been set to be a step section, i.e. HasStepContent, disable the libdoc tab // also disable if there is no word content yet - the user may want to change from step type to // word type, as long as there is no content yet.