fix paste
This commit is contained in:
parent
077425c108
commit
c4043cc583
|
@ -19,7 +19,6 @@
|
||||||
|
|
||||||
#include <wx/clipbrd.h>
|
#include <wx/clipbrd.h>
|
||||||
|
|
||||||
|
|
||||||
ClipboardHandler::ClipboardHandler() {
|
ClipboardHandler::ClipboardHandler() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,7 +29,7 @@ wxString ClipboardHandler::getText() {
|
||||||
wxString ret;
|
wxString ret;
|
||||||
if (wxTheClipboard->Open())
|
if (wxTheClipboard->Open())
|
||||||
{
|
{
|
||||||
if (wxTheClipboard->IsSupported(wxDF_TEXT)) {
|
if (wxTheClipboard->IsSupported(wxDF_UNICODETEXT)) {
|
||||||
wxTextDataObject data;
|
wxTextDataObject data;
|
||||||
wxTheClipboard->GetData(data);
|
wxTheClipboard->GetData(data);
|
||||||
ret = data.GetText();
|
ret = data.GetText();
|
||||||
|
|
Loading…
Reference in New Issue