From e4c3d9409a22c4b4e86e04c0d39c65be5ec13859 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Mon, 3 Jan 2011 17:15:37 +0000 Subject: [PATCH] build fix for wxUSE_CONSOLE_EVENTLOOP==0 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66543 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/clipbrd.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gtk/clipbrd.cpp b/src/gtk/clipbrd.cpp index 7fe76b4e66..924f7c88c0 100644 --- a/src/gtk/clipbrd.cpp +++ b/src/gtk/clipbrd.cpp @@ -75,10 +75,11 @@ public: ~wxClipboardSync() { +#if wxUSE_CONSOLE_EVENTLOOP // ensure that there is a running event loop: this might not be the // case if we're called before the main event loop startup wxEventLoopGuarantor ensureEventLoop; - +#endif while (ms_clipboard) wxEventLoopBase::GetActive()->YieldFor(wxEVT_CATEGORY_CLIPBOARD); }