diff --git a/PROMS/VEPROMS User Interface/frmSectionProperties.cs b/PROMS/VEPROMS User Interface/frmSectionProperties.cs index b6279648..a736bf26 100644 --- a/PROMS/VEPROMS User Interface/frmSectionProperties.cs +++ b/PROMS/VEPROMS User Interface/frmSectionProperties.cs @@ -256,14 +256,17 @@ namespace VEPROMS // check type of section from document styles to determine if the stepsection checkbox should // be checked. - int secindx = (int)_SectionConfig.SectionType; - // find the index for the document style to determine whether this is a step or word section. + //int secindx = (int)_SectionConfig.SectionType; + //// find the index for the document style to determine whether this is a step or word section. PlantFormat pf = _SectionConfig.MyFormat != null ? _SectionConfig.MyFormat.PlantFormat : _SectionConfig.MyDefaultFormat.PlantFormat; - for (int i = 0; i < pf.DocStyles.DocStyleList.Count; i++) - { - if (pf.DocStyles.DocStyleList[i].Index == secindx) - rbStepSect.Checked = pf.DocStyles.DocStyleList[i].IsStepSection; - } + //for (int i = 0; i < pf.DocStyles.DocStyleList.Count; i++) + //{ + // if (pf.DocStyles.DocStyleList[i].Index == secindx) + // rbStepSect.Checked = pf.DocStyles.DocStyleList[i].IsStepSection; _SectionConfig.MySection. + //} + + // set the StepSect radio button based on _isStepSection to ensure the proper section types are available + rbStepSect.Checked = _isStepSection; // set up some of the format tab: SetupPpCmbxSectionType(); ShowAvailableOptionsForSectionType();