[Libreoffice-commits] .: basic/source

Lionel Elie Mamane lmamane at kemper.freedesktop.org
Wed Aug 17 10:19:08 PDT 2011


 basic/source/uno/namecont.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit caee685234e87a4509c9aec4f04813714bfaf93d
Author: Lionel Elie Mamane <lionel.mamane at gestman.lu>
Date:   Wed Aug 17 19:18:08 2011 +0200

    fdo#40173 write out *newly* empty library

diff --git a/basic/source/uno/namecont.cxx b/basic/source/uno/namecont.cxx
index cf2e0b6..f4823c7 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;
         }
 


More information about the Libreoffice-commits mailing list