diff --git a/PROMS/Volian.Controls.Library/StepRTB.cs b/PROMS/Volian.Controls.Library/StepRTB.cs index c47059d6..b8acd3da 100644 --- a/PROMS/Volian.Controls.Library/StepRTB.cs +++ b/PROMS/Volian.Controls.Library/StepRTB.cs @@ -1676,10 +1676,11 @@ namespace Volian.Controls.Library case Keys.C: //ctrl-C // handle the clipboard copy and cut when a Transition or RO is selected // For now, we are coping/cutting just the displayed text to the clipboard (like 16-bit VE-PROMS) - Clipboard.SetText(GetSelectedDisplayableText()); + string ts = GetSelectedDisplayableText(); + if (ts!=null&&ts!="") Clipboard.SetText(GetSelectedDisplayableText()); e.Handled = true; e.SuppressKeyPress = true; - if (e.KeyCode == Keys.X) // cut to clipboard - delete the selected text + if (ts!=null&&ts!=""&&e.KeyCode == Keys.X) // cut to clipboard - delete the selected text HandleDeleteKeyWithSelectedText(e, null); break; case Keys.V: diff --git a/PROMS/Volian.Controls.Library/StepTabRibbon.designer.cs b/PROMS/Volian.Controls.Library/StepTabRibbon.designer.cs index 2a13b40c..33aaae6a 100644 Binary files a/PROMS/Volian.Controls.Library/StepTabRibbon.designer.cs and b/PROMS/Volian.Controls.Library/StepTabRibbon.designer.cs differ