git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12158
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
ClearSelection();
wxTextDataObject data;
ClearSelection();
wxTextDataObject data;
- canPaste = wxTheClipboard->GetData(data);
+ gotData = wxTheClipboard->GetData(data);
wxString str = data.GetText();
int len = str.Length();
pdoc->InsertString(currentPos, str.c_str(), len);
wxString str = data.GetText();
int len = str.Length();
pdoc->InsertString(currentPos, str.c_str(), len);
bool ScintillaWX::CanPaste() {
bool ScintillaWX::CanPaste() {
bool canPaste;
wxTheClipboard->Open();
bool canPaste;
wxTheClipboard->Open();
- canPaste = wxTheClipboard->GetData(data);
+ canPaste = wxTheClipboard->IsSupported( wxDF_TEXT );
wxTheClipboard->Close();
return canPaste;
wxTheClipboard->Close();
return canPaste;
ClearSelection();
wxTextDataObject data;
ClearSelection();
wxTextDataObject data;
- canPaste = wxTheClipboard->GetData(data);
+ gotData = wxTheClipboard->GetData(data);
wxString str = data.GetText();
int len = str.Length();
pdoc->InsertString(currentPos, str.c_str(), len);
wxString str = data.GetText();
int len = str.Length();
pdoc->InsertString(currentPos, str.c_str(), len);
bool ScintillaWX::CanPaste() {
bool ScintillaWX::CanPaste() {
bool canPaste;
wxTheClipboard->Open();
bool canPaste;
wxTheClipboard->Open();
- canPaste = wxTheClipboard->GetData(data);
+ canPaste = wxTheClipboard->IsSupported( wxDF_TEXT );
wxTheClipboard->Close();
return canPaste;
wxTheClipboard->Close();
return canPaste;