From 4625ac41f5d993a27997a6df042f5591d39224a7 Mon Sep 17 00:00:00 2001 From: Kathy Date: Thu, 14 Jul 2011 16:02:48 +0000 Subject: [PATCH] --- PROMS/Volian.Controls.Library/StepTabRibbon.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Controls.Library/StepTabRibbon.cs b/PROMS/Volian.Controls.Library/StepTabRibbon.cs index 30ac589d..0a7f711a 100644 --- a/PROMS/Volian.Controls.Library/StepTabRibbon.cs +++ b/PROMS/Volian.Controls.Library/StepTabRibbon.cs @@ -376,7 +376,15 @@ namespace Volian.Controls.Library if (MyEditItem is GridItem && (MyEditItem as GridItem).MyFlexGrid.IsRoTable) btnCMGoTo.Enabled = btnGoTo.Enabled = true; else - btnCMGoTo.Enabled = btnGoTo.Enabled = _MyStepRTB.IsSelectionLinked(_MyStepRTB.SelectionStart, _MyStepRTB.SelectionLength); + { + if (_MyStepRTB.IsSelectionLinked(_MyStepRTB.SelectionStart, _MyStepRTB.SelectionLength)) + { + // if selected text = ?, i.e. a missing/undefined destination, don't allow go to + btnCMGoTo.Enabled = btnGoTo.Enabled = !_MyStepRTB.SelectedText.StartsWith("?"); + } + else + btnCMGoTo.Enabled = btnGoTo.Enabled = false; + } } void _MyStepRTB_Leave(object sender, EventArgs e) {