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) {