Fixed null reference, program crash, if no step editor window was open when doing a search for annotations
This commit is contained in:
parent
87f5f59aa0
commit
7ceacd813c
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user