summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2013-06-03 17:54:57 +0200
committerMiklos Vajna <vmiklos@suse.cz>2013-06-03 18:15:15 +0200
commit8c63280ccd53d047a710f21e749214d0064a3d1a (patch)
tree7db8aa0090bfd4d1d86c3cf0474ea5689cdb1a84 /basic
parent12d02918976fbefb2997ebe8bd6a38fb2494217b (diff)
SfxLibraryContainer::storeLibraries_Impl: make saving basic macros work again
Regression from cbd1a89676f39135ed2e9c47d20475b2053289b9, that commit accidentally not only removed the #if 0 block, but also two other braces -- because of this, in case bStorage was false, nothing was saved. The effect of this was that if the user edited some macro in the basic IDE, then saved the macro, it was shown as saved, but in fact that didn't happen. Change-Id: I20f8358dddfb226976be72f95dcad64de88d83c3 (cherry picked from commit 06138c2a5575b45109dc609453300aa74df22800)
Diffstat (limited to 'basic')
-rw-r--r--basic/source/uno/namecont.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/basic/source/uno/namecont.cxx b/basic/source/uno/namecont.cxx
index 69e8fbfbd9e8..4dcf9c429917 100644
--- a/basic/source/uno/namecont.cxx
+++ b/basic/source/uno/namecont.cxx
@@ -1926,6 +1926,7 @@ void SfxLibraryContainer::storeLibraries_Impl( const uno::Reference< embed::XSto
if( pImplLib->implIsModified() || bComplete )
{
+ {
uno::Reference< embed::XStorage > xLibraryStor;
if( bStorage )
{
@@ -1947,6 +1948,7 @@ void SfxLibraryContainer::storeLibraries_Impl( const uno::Reference< embed::XSto
#endif
return;
}
+ }
// Maybe lib is not loaded?!
if( bComplete )