B2017-069 – remove enhanced document information from the config when a step is restored from history

Added a null check
This commit is contained in:
2017-03-31 15:18:02 +00:00
parent 8f81199574
commit de0e7d3613
2 changed files with 19 additions and 1 deletions

View File

@@ -462,7 +462,8 @@ namespace Volian.Controls.Library
{
ItemInfo ii = ItemInfo.Get(ed.ItemID);
//if (MyStepPanel.MyStepTabPanel.MyDisplayTabControl.IsItemInfoProcedureOpen(ii))
MyStepPanel.MyStepTabPanel.MyDisplayTabControl.OnRefreshEnhancedDocument(new ItemSelectedChangedEventArgs(ii));
if (ii != null)
MyStepPanel.MyStepTabPanel.MyDisplayTabControl.OnRefreshEnhancedDocument(new ItemSelectedChangedEventArgs(ii));
if (dti != null)
dti.MyStepTabPanel.MyDisplayTabControl.OpenItem(this.MyItemInfo);
}