From 102278048be3b91439d86cc6c2c23a50a5b01e3d Mon Sep 17 00:00:00 2001 From: Kathy Date: Thu, 17 Mar 2011 09:34:34 +0000 Subject: [PATCH] --- PROMS/Volian.Controls.Library/StepTabRibbon.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PROMS/Volian.Controls.Library/StepTabRibbon.cs b/PROMS/Volian.Controls.Library/StepTabRibbon.cs index 11b1c511..00a2630f 100644 --- a/PROMS/Volian.Controls.Library/StepTabRibbon.cs +++ b/PROMS/Volian.Controls.Library/StepTabRibbon.cs @@ -122,7 +122,7 @@ namespace Volian.Controls.Library //_MyStepRTB.KeyUp += new KeyEventHandler(_MyStepRTB_KeyUp); //+= new KeyEventHandler(MyStepRTB_SelectionChanged); _MyStepRTB.SelectionChanged += new EventHandler(_MyStepRTB_SelectionChanged); //_MyStepRTB.ModeChange += new StepRTBModeChangeEvent(_MyStepRTB_ModeChange); - _MyEditItem.Leave += new EventHandler(_MyEditItem_Leave); + if (_MyEditItem != null) _MyEditItem.Leave += new EventHandler(_MyEditItem_Leave); //_MyStepRTB.Leave += new EventHandler(_MyStepRTB_Leave); _MyStepRTB.LinkChanged += new StepRTBLinkEvent(_MyStepRTB_LinkChanged); // Add symbols into the tab ribbon based on format selection. For now, only add symbols once