diff options
author | Kurt Zenker <kz@openoffice.org> | 2008-04-10 10:32:16 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2008-04-10 10:32:16 +0000 |
commit | 03670fef1c33598558b14c15bba68dee4d20b54c (patch) | |
tree | e7b606d2858154ae137a4a5363d5b1556f7fe777 | |
parent | c7aa61983ffafc8ae72ed484c9adc1848ac2fee0 (diff) |
#i88114# accessibility fix
-rw-r--r-- | sd/source/ui/slidesorter/shell/SlideSorterViewShell.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sd/source/ui/slidesorter/shell/SlideSorterViewShell.cxx b/sd/source/ui/slidesorter/shell/SlideSorterViewShell.cxx index 919b5bc395d0..a922caa8b4e8 100644 --- a/sd/source/ui/slidesorter/shell/SlideSorterViewShell.cxx +++ b/sd/source/ui/slidesorter/shell/SlideSorterViewShell.cxx @@ -4,9 +4,9 @@ * * $RCSfile: SlideSorterViewShell.cxx,v $ * - * $Revision: 1.30 $ + * $Revision: 1.31 $ * - * last change: $Author: kz $ $Date: 2008-04-03 14:43:11 $ + * last change: $Author: kz $ $Date: 2008-04-10 11:32:16 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -266,6 +266,12 @@ Reference<drawing::XDrawSubController> SlideSorterViewShell::CreateSubController SlideSorterViewShell::CreateAccessibleDocumentView (::sd::Window* pWindow) { OSL_ASSERT(mpSlideSorter.get()!=NULL); + + // When the view is not set then the initialization is not yet complete + // and we can not yet provide an accessibility object. + if (mpView == NULL) + return NULL; + return new ::accessibility::AccessibleSlideSorterView ( *mpSlideSorter.get(), pWindow->GetAccessibleParentWindow()->GetAccessible(), |