]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/mdi/mdi.cpp
reset deferred position/size if the window was moved immediately (#10073)
[wxWidgets.git] / samples / mdi / mdi.cpp
index 49336c75f546fcd489095aeee6f6ee0f9d984c95..b06f1bf25762fb2ad53beb29f1d34fa6defcb63f 100644 (file)
@@ -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)