diff options
author | Andreas Bregas <ab@openoffice.org> | 2001-08-02 07:09:00 +0000 |
---|---|---|
committer | Andreas Bregas <ab@openoffice.org> | 2001-08-02 07:09:00 +0000 |
commit | 6f212e809add5df5d4c2fa017d26eb47343b366d (patch) | |
tree | 5a301f4285f9843775748c1d66a2b8425fff6417 /sfx2 | |
parent | 5b94c5410bf4700eb1bdd32bfa05e6af66c018cc (diff) |
#89865# GetBasicContainer/GetDialogContainer(): Initialise BasicManager if necessary
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/objxtor.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sfx2/source/doc/objxtor.cxx b/sfx2/source/doc/objxtor.cxx index 4c9e71e6579b..4c91fd96a344 100644 --- a/sfx2/source/doc/objxtor.cxx +++ b/sfx2/source/doc/objxtor.cxx @@ -2,9 +2,9 @@ * * $RCSfile: objxtor.cxx,v $ * - * $Revision: 1.20 $ + * $Revision: 1.21 $ * - * last change: $Author: ab $ $Date: 2001-07-09 16:06:27 $ + * last change: $Author: ab $ $Date: 2001-08-02 08:09:00 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -591,6 +591,8 @@ sal_Bool SfxObjectShell::HasBasic() const Reference< XLibraryContainer > SfxObjectShell::GetDialogContainer() { + if( !pImp->pDialogLibContainer ) + GetBasicManager(); Reference< XLibraryContainer > xRet = static_cast< XLibraryContainer* >( pImp->pDialogLibContainer ); return xRet; @@ -600,6 +602,8 @@ Reference< XLibraryContainer > SfxObjectShell::GetDialogContainer() Reference< XLibraryContainer > SfxObjectShell::GetBasicContainer() { + if( !pImp->pBasicLibContainer ) + GetBasicManager(); Reference< XLibraryContainer > xRet = static_cast< XLibraryContainer* >( pImp->pBasicLibContainer ); return xRet; |