diff --git a/PROMS/Volian.Controls.Library/DisplayHistory.cs b/PROMS/Volian.Controls.Library/DisplayHistory.cs index 8e9d504c..6ef9ba23 100644 --- a/PROMS/Volian.Controls.Library/DisplayHistory.cs +++ b/PROMS/Volian.Controls.Library/DisplayHistory.cs @@ -232,7 +232,8 @@ namespace Volian.Controls.Library //myRTB.LastRtf = string.Empty; myVFG.Clear(); myPicBox.Image = null; - tvAudits.Nodes.Clear(); + if (!tvAudits.IsDisposed) // fixes a crash that happend while debugging separate windows, have not been able to reproduce. left this IF check in just in case. - jsj 2-1-2018 + tvAudits.Nodes.Clear(); if (MyItemInfo == null) { this.Cursor = Cursors.Default; @@ -643,7 +644,7 @@ namespace Volian.Controls.Library // get id for step that is linked & see if it exists - if not, clear the enhanced config data StepConfig sc = MyItemInfo.MyConfig as StepConfig; ItemInfo iexists = ItemInfo.Get(sc.MyEnhancedDocuments[0].ItemID); - if (iexists == null) ItemInfo.RemoveEnhancedFromConfig(MyItemInfo, true); + if (iexists == null) MyItemInfo.RemoveEnhancedFromConfig(true); } myRTB.Clear(); myVFG.Clear();