From caee685234e87a4509c9aec4f04813714bfaf93d Mon Sep 17 00:00:00 2001 From: Lionel Elie Mamane Date: Wed, 17 Aug 2011 19:18:08 +0200 Subject: [PATCH] fdo#40173 write out *newly* empty library --- basic/source/uno/namecont.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basic/source/uno/namecont.cxx b/basic/source/uno/namecont.cxx index cf2e0b6df778..f4823c7fc735 100644 --- a/basic/source/uno/namecont.cxx +++ b/basic/source/uno/namecont.cxx @@ -1806,7 +1806,7 @@ void SfxLibraryContainer::storeLibraries_Impl( const uno::Reference< embed::XSto Any aLibAny = maNameContainer.getByName( aNames[0] ); Reference< XNameAccess > xNameAccess; aLibAny >>= xNameAccess; - if ( !xNameAccess->hasElements() ) + if ( ! ( xNameAccess->hasElements() || isModified() ) ) return; }