fix paste

This commit is contained in:
Chris Mosher 2022-12-20 08:39:36 +09:00
parent 077425c108
commit c4043cc583
1 changed files with 1 additions and 2 deletions

View File

@ -19,7 +19,6 @@
#include <wx/clipbrd.h>
ClipboardHandler::ClipboardHandler() {
}
@ -30,7 +29,7 @@ wxString ClipboardHandler::getText() {
wxString ret;
if (wxTheClipboard->Open())
{
if (wxTheClipboard->IsSupported(wxDF_TEXT)) {
if (wxTheClipboard->IsSupported(wxDF_UNICODETEXT)) {
wxTextDataObject data;
wxTheClipboard->GetData(data);
ret = data.GetText();