diff options
author | Andreas Bregas <ab@openoffice.org> | 2001-11-28 14:10:34 +0000 |
---|---|---|
committer | Andreas Bregas <ab@openoffice.org> | 2001-11-28 14:10:34 +0000 |
commit | 3856f7748bba73385168443f3fd176191293e979 (patch) | |
tree | cac06c1b8719a7ca55da0a81badea5ba7d8f62be /basic | |
parent | c5d87cff59723128118fa9aa858e4905129692de (diff) |
#92172# Load library container libraries before storing to 5.0
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/basmgr/basmgr.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/basic/source/basmgr/basmgr.cxx b/basic/source/basmgr/basmgr.cxx index 2fd74e8f7f12..4710b002fa9e 100644 --- a/basic/source/basmgr/basmgr.cxx +++ b/basic/source/basmgr/basmgr.cxx @@ -2,9 +2,9 @@ * * $RCSfile: basmgr.cxx,v $ * - * $Revision: 1.15 $ + * $Revision: 1.16 $ * - * last change: $Author: ab $ $Date: 2001-11-28 10:31:36 $ + * last change: $Author: ab $ $Date: 2001-11-28 15:10:34 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1265,6 +1265,7 @@ void BasicManager::Store( SotStorage& rStorage, BOOL bStoreLibs ) pOldBasicPassword = mpImpl->mpInfo->mpOldBasicPassword; if( pOldBasicPassword ) { + Reference< XLibraryContainer > xScriptCont = mpImpl->mpInfo->mxScriptCont; for( USHORT nL = 0; nL < nLibs; nL++ ) { BasicLibInfo* pInfo = pLibs->GetObject( nL ); @@ -1276,6 +1277,9 @@ void BasicManager::Store( SotStorage& rStorage, BOOL bStoreLibs ) if( pInfo->GetPassword() != aPassword ) bModified = sal_True; + if( xScriptCont.is() && xScriptCont->hasByName( aLibName ) ) + xScriptCont->loadLibrary( aLibName ); + if( bPassword && aPassword.Len() == 0 ) { String aDummySource( String::CreateFromAscii( @@ -1289,8 +1293,6 @@ void BasicManager::Store( SotStorage& rStorage, BOOL bStoreLibs ) Reference< XLibraryContainer > xScriptCont = mpImpl->mpInfo->mxScriptCont; if( xScriptCont.is() && xScriptCont->hasByName( aLibName ) ) { - xScriptCont->loadLibrary( aLibName ); - // Now the library isn't password protected any more // but the modules don't contain any source pOldBasicPassword->clearLibraryPassword( aLibName ); |