summaryrefslogtreecommitdiff
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:01:46 +0200
commit3c8d419f4ba4ea9fa4d00b5691900dae091fd3aa (patch)
treecdfa069e7fabcde9522e26653699d51aa6c35e8a
parent8b1f4587400c7f76b96f4932d09a657c6c618d6f (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
-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 4586bac3b3b3..efcaed41ee5a 100644
--- a/basic/source/uno/namecont.cxx
+++ b/basic/source/uno/namecont.cxx
@@ -1922,6 +1922,7 @@ void SfxLibraryContainer::storeLibraries_Impl( const uno::Reference< embed::XSto
if( pImplLib->implIsModified() || bComplete )
{
+ {
uno::Reference< embed::XStorage > xLibraryStor;
if( bStorage )
{
@@ -1943,6 +1944,7 @@ void SfxLibraryContainer::storeLibraries_Impl( const uno::Reference< embed::XSto
#endif
return;
}
+ }
// Maybe lib is not loaded?!
if( bComplete )