Support unicode text on the clipboard.

Fixes https://gitlab.com/kicad/code/kicad/issues/6294

Fixes https://gitlab.com/kicad/code/kicad/issues/1802
This commit is contained in:
Jeff Young 2020-11-04 23:12:59 +00:00
parent daa0c3aaa1
commit 1899209e9b
1 changed files with 2 additions and 1 deletions

View File

@ -991,7 +991,8 @@ std::string TOOL_MANAGER::GetClipboard() const
if( wxTheClipboard->Open() ) if( wxTheClipboard->Open() )
{ {
if( wxTheClipboard->IsSupported( wxDF_TEXT ) ) if( wxTheClipboard->IsSupported( wxDF_TEXT )
|| wxTheClipboard->IsSupported( wxDF_UNICODETEXT ) )
{ {
wxTextDataObject data; wxTextDataObject data;
wxTheClipboard->GetData( data ); wxTheClipboard->GetData( data );