From 1f8af44de6535bd462025c593e00e87efa51483f Mon Sep 17 00:00:00 2001 From: Kathy Date: Thu, 8 Mar 2012 14:23:06 +0000 Subject: [PATCH] --- PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs index a6e9298b..524fb375 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs @@ -362,6 +362,7 @@ namespace VEPROMS.CSLA.Library get { if (!IsSection) return false; + if (MyDocStyle.StructureStyle.Style == null) return false; return ((ActiveFormat.PlantFormat.FormatData.PurchaseOptions & E_PurchaseOptions.AutoTableOfContents) == E_PurchaseOptions.AutoTableOfContents && (MyDocStyle.StructureStyle.Style & E_DocStructStyle.TableOfContents) == E_DocStructStyle.TableOfContents); } @@ -2601,8 +2602,8 @@ namespace VEPROMS.CSLA.Library private int SectionDefaultCheckOffIndex() { ProcData pd = ActiveFormat.PlantFormat.FormatData.ProcData; - SectionConfig sc = ActiveSection.MyConfig as SectionConfig; if (pd.CheckOffData != null && pd.CheckOffData.CheckOffList != null && pd.CheckOffData.CheckOffList.Count == 2) return 0; // if only two items, first is macro - use it. + SectionConfig sc = ActiveSection.MyConfig as SectionConfig; return sc.Section_CheckoffListSelection; } public CheckOff GetCheckOffStep()