B2012-378 fixed <Ctrl><C> on empty table cell null string error – now just return without trying to process it.
This commit is contained in:
parent
c121a2fce1
commit
4a1e076092
@ -1049,7 +1049,9 @@ namespace Volian.Controls.Library
|
|||||||
else if (ctrl is ComboBox)
|
else if (ctrl is ComboBox)
|
||||||
{
|
{
|
||||||
ComboBox cmb = ctrl as ComboBox;
|
ComboBox cmb = ctrl as ComboBox;
|
||||||
if (myDO.GetDataPresent(DataFormats.Text))
|
if (myDO.GetDataPresent(DataFormats.UnicodeText))
|
||||||
|
cmb.SelectedText = myDO.GetData(DataFormats.UnicodeText).ToString();
|
||||||
|
else if (myDO.GetDataPresent(DataFormats.Text))
|
||||||
cmb.SelectedText = myDO.GetData(DataFormats.Text).ToString();
|
cmb.SelectedText = myDO.GetData(DataFormats.Text).ToString();
|
||||||
_PastePlainText = false;
|
_PastePlainText = false;
|
||||||
return;
|
return;
|
||||||
@ -1137,6 +1139,8 @@ namespace Volian.Controls.Library
|
|||||||
Control ctrl = FindActiveControl();
|
Control ctrl = FindActiveControl();
|
||||||
if (ctrl == null) return; // null if on property page for procedure & section number/title
|
if (ctrl == null) return; // null if on property page for procedure & section number/title
|
||||||
Clipboard.Clear();
|
Clipboard.Clear();
|
||||||
|
if (_MyStepRTB.SelectedText == null || _MyStepRTB.SelectedText == "")
|
||||||
|
return; // nothing to copy onto clipboard, just return
|
||||||
DataObject myDO = new DataObject(); ;
|
DataObject myDO = new DataObject(); ;
|
||||||
if (ctrl is RichTextBox)
|
if (ctrl is RichTextBox)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user