summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2014-09-04 11:52:18 +0200
committerNorbert Thiebaud <nthiebaud@gmail.com>2014-09-06 15:18:59 -0500
commitc6b46c2c23ba883a83bc8a6fdf3a37d2a9ffbf95 (patch)
treeb85b3a1c5aecfaa8cf09e2e52b17904873ae69a6
parent10817252c56f48b0026158fc37a55005098a9d78 (diff)
detect if Standard is only library to *save*
as opposed to only library at all Change-Id: I23bebfe7d156e1f4a60bc5f265a3cf9d295f3e4a Reviewed-on: https://gerrit.libreoffice.org/11275 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
-rw-r--r--basic/source/uno/namecont.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/basic/source/uno/namecont.cxx b/basic/source/uno/namecont.cxx
index 69ba27838aa6..abdd3d5c4595 100644
--- a/basic/source/uno/namecont.cxx
+++ b/basic/source/uno/namecont.cxx
@@ -1810,7 +1810,7 @@ void SfxLibraryContainer::storeLibraries_Impl( const uno::Reference< embed::XSto
if ( bStorage )
{
// Don't write if only empty standard lib exists
- if ( ( nNameCount == 1 ) && ( aNames[0] == "Standard" ) )
+ if ( ( nLibsToSave == 1 ) && ( aNames[0] == "Standard" ) )
{
Any aLibAny = maNameContainer.getByName( aNames[0] );
Reference< XNameAccess > xNameAccess;