From fc3b0de9cc090153880f224be62813ab31d06aff Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 23 Sep 2014 17:44:14 +0000 Subject: [PATCH] add return to a case statment, make sure it is not fall through to other statment git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77856 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/x11/app.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/x11/app.cpp b/src/x11/app.cpp index e5ba515ffd..827c1cb80b 100644 --- a/src/x11/app.cpp +++ b/src/x11/app.cpp @@ -508,8 +508,11 @@ bool wxApp::ProcessXEvent(WXEvent* _event) } case SelectionRequest: { - //A request to paste has occured. + // A request to paste has occured. wxClipboardHandleSelectionRequest(*event); + // The event handle doesn't care the clipboard + // how to response requestor, so just return true. + return true; } #if 0 case DestroyNotify: