Fixed a problem where the code would hang

This commit is contained in:
Rich 2014-10-24 20:19:52 +00:00
parent 3c4fde72c6
commit f453cab9b2

View File

@ -2138,7 +2138,11 @@ namespace VEPROMS
}
infotabTags.Visible = false;
infotabApplicability.Visible = false;
infotabHistory.Visible = false;
// Not sure why but the following line was causing a hang if
// you opened a procedure
// and then created a word section
// and then you selected the procedure "Tab"
//infotabHistory.Visible = false;
displayBookMarks.MyEditItem = null;
displayFoldoutMaint.Visible = false;
//vlnStackTrace.ShowStack("enter tc_ItemSelectedChanged {0}", _CurrentItem);
@ -2170,7 +2174,7 @@ namespace VEPROMS
displayTags.IsVisible = true;
}
infotabHistory.Visible = true;
if (args.MyItemInfo.MyDocVersion.MultiUnitCount > 1 && !args.MyItemInfo.IsProcedure )
if (args.MyItemInfo.MyDocVersion.MultiUnitCount > 1 && !args.MyItemInfo.IsProcedure)
{
infotabApplicability.Visible = true;
displayApplicability.MyItemInfo = args.MyEditItem.MyItemInfo;