X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bacbf21352631d4a29021b0b4158fb428f045f55..0159d534634fb2a64687efc25812676c99ac9295:/samples/mdi/mdi.cpp diff --git a/samples/mdi/mdi.cpp b/samples/mdi/mdi.cpp index 49336c75f5..b06f1bf257 100644 --- a/samples/mdi/mdi.cpp +++ b/samples/mdi/mdi.cpp @@ -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)