summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--basic/source/uno/namecont.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/basic/source/uno/namecont.cxx b/basic/source/uno/namecont.cxx
index a27c36db0f00..cf2e0b6df778 100644
--- a/basic/source/uno/namecont.cxx
+++ b/basic/source/uno/namecont.cxx
@@ -1849,10 +1849,8 @@ void SfxLibraryContainer::storeLibraries_Impl( const uno::Reference< embed::XSto
// open the source storage which might be used to copy yet-unmodified libraries
try
{
- if ( mxStorage->hasByName( maLibrariesDir ) )
+ if ( mxStorage->hasByName( maLibrariesDir ) || bInplaceStorage )
xSourceLibrariesStor = mxStorage->openStorageElement( maLibrariesDir, bInplaceStorage ? embed::ElementModes::READWRITE : embed::ElementModes::READ );
- else if ( bInplaceStorage )
- xSourceLibrariesStor = mxStorage->openStorageElement( maLibrariesDir, embed::ElementModes::READWRITE );
}
catch( const uno::Exception& )
{