This commit is contained in:
Kathy Ruffing 2011-07-14 16:02:48 +00:00
parent df775b384e
commit 4625ac41f5

View File

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