B2020-132: Proms crashes when attempting to restore a deleted step

This commit is contained in:
Kathy Ruffing 2020-10-08 16:19:42 +00:00
parent 9f8d070e34
commit fe1e392e4e

View File

@ -798,11 +798,12 @@ namespace VEPROMS.CSLA.Library
}
if (!forceConvertToText) //check to see if external with internal format
{
tran.MyContent.RefreshContentItems(); // B2020-132: Proms crashing when attempting to restore a deleted step
if (tran.MyContent.ContentItems[0].MyProcedure.ItemID != tran.MyItemToID.MyProcedure.ItemID)
if (tran.MyContent.ContentItems[0].ActiveFormat != null)
if (!tran.MyContent.ContentItems[0].ActiveFormat.PlantFormat.FormatData.TransData.TransTypeList[tran.TranType].TransMenu.Contains("Proc"))
if (!tran.MyContent.ContentItems[0].ActiveFormat.PlantFormat.FormatData.TransData.TransTypeList[tran.TranType].TransMenu.Contains("other proc"))
forceConvertToText = true;
forceConvertToText = true;
}
oldContent.FixTransitionText(tran, forceConvertToText);
//if (content.IsDirty)