diff options
author | Andre Fischer <af@openoffice.org> | 2002-06-27 11:04:16 +0000 |
---|---|---|
committer | Andre Fischer <af@openoffice.org> | 2002-06-27 11:04:16 +0000 |
commit | 888e1f1cb253efeab3c9f4adcfc2e5e42e7113ab (patch) | |
tree | 808e7c934167c3271489ebcecae609fed32e39d2 /svx/source/accessibility/ChildrenManagerImpl.cxx | |
parent | 5a46fa57af0ab5dc64c5c2f315543ee7a7959ba8 (diff) |
#100763# Calling Init method at newly created accessible shape.
Diffstat (limited to 'svx/source/accessibility/ChildrenManagerImpl.cxx')
-rw-r--r-- | svx/source/accessibility/ChildrenManagerImpl.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/svx/source/accessibility/ChildrenManagerImpl.cxx b/svx/source/accessibility/ChildrenManagerImpl.cxx index 19ccaca49b52..981512b59084 100644 --- a/svx/source/accessibility/ChildrenManagerImpl.cxx +++ b/svx/source/accessibility/ChildrenManagerImpl.cxx @@ -2,9 +2,9 @@ * * $RCSfile: ChildrenManagerImpl.cxx,v $ * - * $Revision: 1.20 $ + * $Revision: 1.21 $ * - * last change: $Author: af $ $Date: 2002-06-13 16:57:27 $ + * last change: $Author: af $ $Date: 2002-06-27 12:04:15 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -170,7 +170,6 @@ uno::Reference<XAccessible> if ( ! rChildDescriptor.mxAccessibleShape.is()) { ::osl::MutexGuard aGuard (maMutex); - // ::osl::Guard< ::osl::Mutex> aGuard (::osl::Mutex::getGlobalMutex()); // Make sure that the requested accessible object has not been // created while locking the global mutex. if ( ! rChildDescriptor.mxAccessibleShape.is()) @@ -184,10 +183,13 @@ uno::Reference<XAccessible> mxParent, this), maShapeTreeInfo); - // rChildDescriptor.mpAccessibleShape = pShape; rChildDescriptor.mxAccessibleShape = uno::Reference<XAccessible> ( static_cast<uno::XWeak*>(pShape), uno::UNO_QUERY); + // Now that there is a reference to the new accessible shape we + // can safely call its Init() method. + if (pShape != NULL) + pShape->Init(); } } |