]> git.saurik.com Git - wxWidgets.git/commitdiff
Use same type in both results of A?B:C operator (Tinderbox build fix).
authorWłodzimierz Skiba <abx@abx.art.pl>
Tue, 25 Jul 2006 06:48:03 +0000 (06:48 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Tue, 25 Jul 2006 06:48:03 +0000 (06:48 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40310 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/mdi/mdi.cpp

index ea50399a218fb7e85e65574681f85eb404df4fc2..dc6105a5060c0c8885f731e1ce9f580b8f3f57b0 100644 (file)
@@ -542,7 +542,7 @@ void MyChild::OnPaste(wxCommandEvent& WXUNUSED(event))
 {
     wxClipboardLocker lock;
     wxTextDataObject data;
-    canvas->SetText(wxTheClipboard->GetData(data) ? data.GetText()
+    canvas->SetText(wxTheClipboard->GetData(data) ? data.GetText().c_str()
                                                   : _T("No text on clipboard"));
 }