Added code so that a StepRTB used outside of a StepItem will not cause a crash.

This commit is contained in:
Rich 2009-12-07 15:57:22 +00:00
parent 35627d8fa2
commit 9f780c4477

View File

@ -341,6 +341,7 @@ namespace Volian.Controls.Library
}
private void SetStepButtonAndMenuEnabling(bool docontextmenus)
{
if (MyStepItem == null) return;
DocVersionInfo dvi = MyStepItem.MyItemInfo.MyProcedure.ActiveParent as DocVersionInfo;
if (dvi == null) return;
if (dvi.VersionType > 127 || MyStepItem.MyStepPanel.PanelViewEditMode == E_ViewMode.View)