summaryrefslogtreecommitdiff
path: root/svx/source
diff options
context:
space:
mode:
authorMalte Timmermann <mt@openoffice.org>2001-11-23 11:46:44 +0000
committerMalte Timmermann <mt@openoffice.org>2001-11-23 11:46:44 +0000
commiteede17165b677895c260256ccf0c0ea26489277a (patch)
tree986cf1a1c4565178dc1debbcb0e12f69281bfe88 /svx/source
parent3c7fbbabd99c53af8ae5ed746e5f9367367f3c4a (diff)
#95154# call disposing() when removing the D&D-Listeners
Diffstat (limited to 'svx/source')
-rw-r--r--svx/source/editeng/impedit.cxx11
1 files changed, 9 insertions, 2 deletions
diff --git a/svx/source/editeng/impedit.cxx b/svx/source/editeng/impedit.cxx
index 4b5fdbc22eef..d5610af91f56 100644
--- a/svx/source/editeng/impedit.cxx
+++ b/svx/source/editeng/impedit.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: impedit.cxx,v $
*
- * $Revision: 1.28 $
+ * $Revision: 1.29 $
*
- * last change: $Author: mt $ $Date: 2001-11-22 18:16:33 $
+ * last change: $Author: mt $ $Date: 2001-11-23 12:46:44 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1887,6 +1887,13 @@ void ImpEditView::RemoveDragAndDropListeners()
uno::Reference< datatransfer::dnd::XDropTargetListener> xDTL( xDGL, uno::UNO_QUERY );
GetWindow()->GetDropTarget()->removeDropTargetListener( xDTL );
+ if ( mxDnDListener.is() )
+ {
+ uno::Reference< lang::XEventListener> xEL( mxDnDListener, uno::UNO_QUERY );
+ xEL->disposing( lang::EventObject() ); // #95154# Empty Source means it's the Client
+ mxDnDListener.clear();
+ }
+
bActiveDragAndDropListener = FALSE;
}
}