Kaydet (Commit) 1392a88c authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane

fdo#52076 remove empty library instead of writing it out empty

Change-Id: Id4fd8c4f34e8ed07044eb428049731c4b9b694ca
Reviewed-on: https://gerrit.libreoffice.org/10507Reviewed-by: 's avatarLionel Elie Mamane <lionel@mamane.lu>
Tested-by: 's avatarLionel Elie Mamane <lionel@mamane.lu>
üst be97f2f5
......@@ -1837,8 +1837,12 @@ void SfxLibraryContainer::storeLibraries_Impl( const uno::Reference< embed::XSto
Any aLibAny = maNameContainer.getByName( aNames[0] );
Reference< XNameAccess > xNameAccess;
aLibAny >>= xNameAccess;
if ( ! ( xNameAccess->hasElements() || ( bInplaceStorage && isModified() ) ) )
if ( ! xNameAccess->hasElements() )
{
if ( bInplaceStorage && mxStorage->hasByName(maLibrariesDir) )
{
mxStorage->removeElement(maLibrariesDir);
}
return;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment