Added code so that a StepRTB used outside of a StepItem will not cause a crash.
This commit is contained in:
parent
35627d8fa2
commit
9f780c4477
@ -341,6 +341,7 @@ namespace Volian.Controls.Library
|
|||||||
}
|
}
|
||||||
private void SetStepButtonAndMenuEnabling(bool docontextmenus)
|
private void SetStepButtonAndMenuEnabling(bool docontextmenus)
|
||||||
{
|
{
|
||||||
|
if (MyStepItem == null) return;
|
||||||
DocVersionInfo dvi = MyStepItem.MyItemInfo.MyProcedure.ActiveParent as DocVersionInfo;
|
DocVersionInfo dvi = MyStepItem.MyItemInfo.MyProcedure.ActiveParent as DocVersionInfo;
|
||||||
if (dvi == null) return;
|
if (dvi == null) return;
|
||||||
if (dvi.VersionType > 127 || MyStepItem.MyStepPanel.PanelViewEditMode == E_ViewMode.View)
|
if (dvi.VersionType > 127 || MyStepItem.MyStepPanel.PanelViewEditMode == E_ViewMode.View)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user