From f6afb56a2d6b0145fe58643db846250a8a6d8356 Mon Sep 17 00:00:00 2001 From: Mattia Barbon Date: Sun, 8 Feb 2004 07:54:26 +0000 Subject: [PATCH] Applied patches #892580 and #892582 from Christian Sturmlechner. Fix of variable declaration in wxApp::Yield(). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25600 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/motif/app.cpp | 2 +- src/x11/app.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/motif/app.cpp b/src/motif/app.cpp index a723826ec3..d17e8fc734 100644 --- a/src/motif/app.cpp +++ b/src/motif/app.cpp @@ -304,7 +304,7 @@ void wxApp::SetTopLevelWidget(WXDisplay* display, WXWidget widget) bool wxApp::Yield(bool onlyIfNeeded) { - bool s_inYield = FALSE; + static bool s_inYield = FALSE; if ( s_inYield ) { diff --git a/src/x11/app.cpp b/src/x11/app.cpp index 306e7b4081..1c924a1822 100644 --- a/src/x11/app.cpp +++ b/src/x11/app.cpp @@ -786,7 +786,7 @@ bool wxApp::Yield(bool onlyIfNeeded) int i; for (i = 0; i < 2; i++) { - bool s_inYield = FALSE; + static bool s_inYield = FALSE; if ( s_inYield ) { -- 2.45.2