git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49114 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -516,8 +516,13 @@ void MyChild::OnPaste(wxCommandEvent& WXUNUSED(event))
|
||||
{
|
||||
wxClipboardLocker lock;
|
||||
wxTextDataObject data;
|
||||
canvas->SetText(wxTheClipboard->GetData(data) ? data.GetText().c_str()
|
||||
: _T("No text on clipboard"));
|
||||
canvas->SetText(
|
||||
(
|
||||
wxTheClipboard->GetData(data) ?
|
||||
data.GetText() :
|
||||
wxString("No text on clipboard")
|
||||
).c_str()
|
||||
);
|
||||
}
|
||||
|
||||
void MyChild::OnUpdatePaste(wxUpdateUIEvent& event)
|
||||
|
Reference in New Issue
Block a user