summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Fischer <af@openoffice.org>2002-11-20 15:37:01 +0000
committerAndre Fischer <af@openoffice.org>2002-11-20 15:37:01 +0000
commitbc244b6757bf476572d878beddc2e136f13dec07 (patch)
treec186813495e256e44cae8dd4580480de11ab4e6d
parent7cad050a4afd732d560805d893abb4577a156067 (diff)
#105380# In destructor calling XComponent::disposing at accessibility object.
-rw-r--r--svtools/source/control/valueset.cxx12
1 files changed, 10 insertions, 2 deletions
diff --git a/svtools/source/control/valueset.cxx b/svtools/source/control/valueset.cxx
index df81d2b20171..f93e2617dabd 100644
--- a/svtools/source/control/valueset.cxx
+++ b/svtools/source/control/valueset.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: valueset.cxx,v $
*
- * $Revision: 1.12 $
+ * $Revision: 1.13 $
*
- * last change: $Author: os $ $Date: 2002-06-20 10:15:13 $
+ * last change: $Author: af $ $Date: 2002-11-20 16:37:01 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -85,6 +85,9 @@
#ifndef _DRAFTS_COM_SUN_STAR_ACCESSIBILITY_ACCESSIBLESTATETYPE_HPP_
#include <drafts/com/sun/star/accessibility/AccessibleStateType.hpp>
#endif
+#ifndef _COM_SUN_STAR_LANG_XCOMPONENT_HPP_
+#include <com/sun/star/lang/XComponent.hpp>
+#endif
#include "valueimp.hxx"
@@ -157,6 +160,11 @@ ValueSet::ValueSet( Window* pParent, const ResId& rResId ) :
ValueSet::~ValueSet()
{
+ ::com::sun::star::uno::Reference<::com::sun::star::lang::XComponent>
+ xComponent (GetAccessible(), ::com::sun::star::uno::UNO_QUERY);
+ if (xComponent.is())
+ xComponent->dispose ();
+
if ( mpScrBar )
delete mpScrBar;