From 5011621ad83d5e4e9aee82d717f05cce20bff007 Mon Sep 17 00:00:00 2001 From: "liz.li" Date: Mon, 27 Nov 2023 10:54:20 +0800 Subject: [PATCH] FIX: imgui textinput cannot paste on macos MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit jira: STUDIO-5070、STUDIO-5365 Change-Id: Iea8f41e12744ecda0fbb95c1a8f2e014a7cdc384 --- src/slic3r/GUI/ImGuiWrapper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/ImGuiWrapper.cpp b/src/slic3r/GUI/ImGuiWrapper.cpp index 2912946e6..dc2f895e1 100644 --- a/src/slic3r/GUI/ImGuiWrapper.cpp +++ b/src/slic3r/GUI/ImGuiWrapper.cpp @@ -2501,12 +2501,12 @@ void ImGuiWrapper::destroy_fonts_texture() { const char* ImGuiWrapper::clipboard_get(void* user_data) { - ImGuiWrapper *self = reinterpret_cast(user_data); + ImGuiWrapper* self = reinterpret_cast(user_data); const char* res = ""; if (wxTheClipboard->Open()) { - if (wxTheClipboard->IsSupported(wxDF_TEXT)) { + if (wxTheClipboard->IsSupported(wxDF_TEXT) || wxTheClipboard->IsSupported(wxDF_UNICODETEXT)) { wxTextDataObject data; wxTheClipboard->GetData(data);