]> git.saurik.com Git - wxWidgets.git/commitdiff
Applied patches #892580 and #892582 from Christian Sturmlechner.
authorMattia Barbon <mbarbon@cpan.org>
Sun, 8 Feb 2004 07:54:26 +0000 (07:54 +0000)
committerMattia Barbon <mbarbon@cpan.org>
Sun, 8 Feb 2004 07:54:26 +0000 (07:54 +0000)
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
src/x11/app.cpp

index a723826ec3a5920c927b0fa0ad506cb28072ec18..d17e8fc734efeba00f42164bdd69c844bd6230f5 100644 (file)
@@ -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 )
     {
index 306e7b4081b09d192ec2b512d04698c03cc4bd91..1c924a182280b08fd8c078c270ea27a6f0364f7b 100644 (file)
@@ -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 )
         {