Fixed null reference, program crash, if no step editor window was open when doing a search for annotations

This commit is contained in:
Kathy Ruffing 2014-02-25 14:42:11 +00:00
parent 87f5f59aa0
commit 7ceacd813c

View File

@ -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;
}