summaryrefslogtreecommitdiff
path: root/sd/source/ui/docshell/docshell.cxx
diff options
context:
space:
mode:
authorAndre Fischer <af@openoffice.org>2004-08-18 16:26:03 +0000
committerAndre Fischer <af@openoffice.org>2004-08-18 16:26:03 +0000
commit672aa42f7ae0734f50cff2cbd311053fda984b37 (patch)
treed622a08b33e0d1d20c0b5d5c0d580784c33b1463 /sd/source/ui/docshell/docshell.cxx
parentbc931c882622ce300f10677c841f789793864b30 (diff)
#i33138# Sending SFX_HINT_DYING from destructor.
Diffstat (limited to 'sd/source/ui/docshell/docshell.cxx')
-rw-r--r--sd/source/ui/docshell/docshell.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/sd/source/ui/docshell/docshell.cxx b/sd/source/ui/docshell/docshell.cxx
index 72dbbe69a5c1..ed9cae61299e 100644
--- a/sd/source/ui/docshell/docshell.cxx
+++ b/sd/source/ui/docshell/docshell.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: docshell.cxx,v $
*
- * $Revision: 1.26 $
+ * $Revision: 1.27 $
*
- * last change: $Author: kz $ $Date: 2004-08-02 10:08:36 $
+ * last change: $Author: af $ $Date: 2004-08-18 17:26:03 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -319,6 +319,12 @@ DrawDocShell::DrawDocShell(SdDrawDocument* pDoc, SfxObjectCreateMode eMode,
DrawDocShell::~DrawDocShell()
{
+ // Tell all listeners that the doc shell is about to be
+ // destroyed. This has been introduced for the PreviewRenderer to
+ // free its view (that uses the item poll of the doc shell) but
+ // may be usefull in other places as well.
+ Broadcast(SfxSimpleHint(SFX_HINT_DYING));
+
bInDestruction = TRUE;
delete pFuActual;
pFuActual = NULL;