From 7ceacd813ca278894889ba01d5720b2e59ae2da1 Mon Sep 17 00:00:00 2001 From: Kathy Date: Tue, 25 Feb 2014 14:42:11 +0000 Subject: [PATCH] Fixed null reference, program crash, if no step editor window was open when doing a search for annotations --- PROMS/Volian.Controls.Library/DisplayTags.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PROMS/Volian.Controls.Library/DisplayTags.cs b/PROMS/Volian.Controls.Library/DisplayTags.cs index 0924e831..f35b5eda 100644 --- a/PROMS/Volian.Controls.Library/DisplayTags.cs +++ b/PROMS/Volian.Controls.Library/DisplayTags.cs @@ -192,7 +192,7 @@ namespace Volian.Controls.Library if (_checkoffsAllowed && (fmtdata.ProcData.CheckOffData.CheckOffList == null || fmtdata.ProcData.CheckOffData.CheckOffList.Count == 0) || fmtdata.ProcData.CheckOffData.Menu == "Signoff") { - SectionConfig secf = CurItemInfo.MyActiveSection.MyConfig as SectionConfig; + SectionConfig secf = CurItemInfo.ActiveSection.MyConfig as SectionConfig; if (secf.Section_CheckoffListSelection > 0) cmbCheckoff.SelectedIndex = secf.Section_CheckoffListSelection - ((fmtdata.ProcData.CheckOffData.Menu == "Signoff") ? 0 : 1); cmbCheckoff.Enabled = false; }