From 1899209e9bdb65cf6082acba998424d7662ea25d Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Wed, 4 Nov 2020 23:12:59 +0000 Subject: [PATCH] Support unicode text on the clipboard. Fixes https://gitlab.com/kicad/code/kicad/issues/6294 Fixes https://gitlab.com/kicad/code/kicad/issues/1802 --- common/tool/tool_manager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/tool/tool_manager.cpp b/common/tool/tool_manager.cpp index b9661e5ddd..dff210da67 100644 --- a/common/tool/tool_manager.cpp +++ b/common/tool/tool_manager.cpp @@ -991,7 +991,8 @@ std::string TOOL_MANAGER::GetClipboard() const if( wxTheClipboard->Open() ) { - if( wxTheClipboard->IsSupported( wxDF_TEXT ) ) + if( wxTheClipboard->IsSupported( wxDF_TEXT ) + || wxTheClipboard->IsSupported( wxDF_UNICODETEXT ) ) { wxTextDataObject data; wxTheClipboard->GetData( data );