summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorPedro Giffuni <pfg@apache.org>2011-10-31 14:43:32 +0000
committerPedro Giffuni <pfg@apache.org>2011-10-31 14:43:32 +0000
commit68ab5b171b613b4a0fba5f993738b1f5889223db (patch)
treee1a45592f2a85d2bb804f62ed6a6126bd8401720 /sd
parent6b591fa1fb53ee2b026e768156feaf3067564287 (diff)
i94007 - Multiscreen slideshow crashes on exit. Thanks to Andre for the review.
Diffstat (limited to 'sd')
-rwxr-xr-xsd/source/ui/slideshow/slideshow.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/sd/source/ui/slideshow/slideshow.cxx b/sd/source/ui/slideshow/slideshow.cxx
index 7bee71e35014..9a8e5f9749a5 100755
--- a/sd/source/ui/slideshow/slideshow.cxx
+++ b/sd/source/ui/slideshow/slideshow.cxx
@@ -735,6 +735,12 @@ void SAL_CALL SlideShow::end() throw(RuntimeException)
ViewShellBase* pFullScreenViewShellBase = mpFullScreenViewShellBase;
mpFullScreenViewShellBase = 0;
+ // dispose before fullscreen window changes screens
+ // (potentially). If this needs to be moved behind
+ // pWorkWindow->StartPresentationMode() again, read issue
+ // i94007 & implement the solution outlined there.
+ xController->dispose();
+
if( pFullScreenViewShellBase )
{
PresentationViewShell* pShell = dynamic_cast<PresentationViewShell*>(pFullScreenViewShellBase->GetMainViewShell().get());
@@ -749,8 +755,6 @@ void SAL_CALL SlideShow::end() throw(RuntimeException)
}
}
- xController->dispose();
-
if( pFullScreenViewShellBase )
{
PresentationViewShell* pShell = NULL;