[Libreoffice-commits] .: sd/source

Thorsten Behrens thorsten at kemper.freedesktop.org
Tue Sep 6 07:42:53 PDT 2011


 sd/source/ui/slideshow/slideshowimpl.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 044c534b2deb985052e7977bba3290c5d2c3ad77
Author: Thorsten Behrens <tbehrens at novell.com>
Date:   Tue Sep 6 16:25:49 2011 +0200

    Fix hang in slideshow.
    
    This fixes fdo#32861, by processing all remaining events after the
    post-yield callback comes around (that's supposed to be the time
    when the app can spend time on event processing).

diff --git a/sd/source/ui/slideshow/slideshowimpl.cxx b/sd/source/ui/slideshow/slideshowimpl.cxx
index 0f7212b..867e3bd 100644
--- a/sd/source/ui/slideshow/slideshowimpl.cxx
+++ b/sd/source/ui/slideshow/slideshowimpl.cxx
@@ -1875,6 +1875,9 @@ IMPL_LINK( SlideshowImpl, PostYieldListener, void*, EMPTYARG )
 {
     Application::EnableNoYieldMode(false);
     Application::RemovePostYieldListener(LINK(this, SlideshowImpl, PostYieldListener));
+    Application::Reschedule(true); // fix for fdo#32861 - process
+                                   // *all* outstanding events after
+                                   // yield is done.
     if (mbDisposed)
         return 0;
     return updateSlideShow();


More information about the Libreoffice-commits mailing list