[Libreoffice-commits] core.git: svx/source

Caolán McNamara caolanm at redhat.com
Fri Mar 3 17:11:59 UTC 2017


 svx/source/gallery2/gallery1.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 4032957469cf9847e0aa830dc922f4acd86e32ba
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Mar 3 17:08:44 2017 +0000

    avoid config and gallery for ppt loader testing
    
    Change-Id: I3512f4b7551ef79dc0aed564219cef84aad91a2f

diff --git a/svx/source/gallery2/gallery1.cxx b/svx/source/gallery2/gallery1.cxx
index c0743eb..24c8810 100644
--- a/svx/source/gallery2/gallery1.cxx
+++ b/svx/source/gallery2/gallery1.cxx
@@ -33,6 +33,7 @@
 #include <osl/thread.h>
 #include <tools/vcompat.hxx>
 #include <ucbhelper/content.hxx>
+#include <unotools/configmgr.hxx>
 #include <unotools/ucbstreamhelper.hxx>
 #include <unotools/pathoptions.hxx>
 #include <sfx2/docfile.hxx>
@@ -181,7 +182,7 @@ Gallery* Gallery::GetGalleryInstance()
     if (!s_pGallery)
     {
         ::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
-        if (!s_pGallery)
+        if (!s_pGallery && !utl::ConfigManager::IsAvoidConfig())
         {
             s_pGallery = new Gallery( SvtPathOptions().GetGalleryPath() );
         }


More information about the Libreoffice-commits mailing list