From cedea519ca9df1053554dd5804cb1b00971da099 Mon Sep 17 00:00:00 2001 From: Kathy Date: Tue, 19 Apr 2011 14:10:36 +0000 Subject: [PATCH] --- PROMS/Volian.Controls.Library/StepRTB.cs | 5 +++-- .../StepTabRibbon.designer.cs | Bin 485182 -> 487366 bytes 2 files changed, 3 insertions(+), 2 deletions(-) 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 2a13b40cc04c593405c1ccac18fab54d8f71f6e0..33aaae6a26644d4b97a39b69a82d7c72b53449e1 100644 GIT binary patch delta 603 zcmX|+QAkr^6vsWg_grLz&ap|vR%&fT4{=+DPG9yg=+QOS=)oYE4?bQa21&&pibX-L zZtR~0b_uH)8lyqqOGH8RBul~fDd-reaIKfJkUn>v4+p;Q{Ql?vKj(8b_`Mb^XP2qp z?D`R{l$Uj%qPLyHu2^`LMrZg520<48}*CoBT>lGx8bJ8#7*@C zuDv6#c<_PlpT~Me2?)JTqnbIs5rBMoiklS3uWXSlmn=oBY^mwjuzzz8`a880_P&w^ zV~``oUG|Ce6P|P-*DL9DKc$cx<{{X7lKgwhcU;iHedzwh$zoWp6RU9?rEN8gr4FrI ztbz-Kvcktve#REu~$5w=35S?0ZjPmGOQ75$7+fqjv)4elMHK4hWBlA z8il(O&unsBe6qMs4vBPXY1nz{fbp<3xcG{H9$JqK?)WxldG`P(-bgI>Ps7;Z zv^etiaL_18lDf)8XXf-ApH-a1p81xg@shl#{*g!L=DFIW6vbMGr(spthsgzAguTG0 hF!q;A!g$X|8L=tno-3x6@L=?$8p%tsuqxV2P#X3x$O*alwZX0bpvW4Tq@7Ybe@64ry;xf$lej1oN!fylT3xDd+DGrNz)qslEI#o&r@n{)s#;4#pvQ(gg JJWw&MsXu@=s_Os%