[Libreoffice-commits] core.git: sc/source
Caolán McNamara
caolanm at redhat.com
Tue Sep 19 11:42:28 UTC 2017
sc/source/ui/docshell/docsh2.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit c61a44cf44fd4d5355250c3dbed82b82f6f94c57
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Sep 19 12:16:11 2017 +0100
ofz: survive missing config
Change-Id: I9d05602b6e3af2bb54e1c82668090d71153b3c9d
Reviewed-on: https://gerrit.libreoffice.org/42463
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sc/source/ui/docshell/docsh2.cxx b/sc/source/ui/docshell/docsh2.cxx
index 2ae71b4f101d..ad5c3c8727cb 100644
--- a/sc/source/ui/docshell/docsh2.cxx
+++ b/sc/source/ui/docshell/docsh2.cxx
@@ -27,6 +27,7 @@
#include <orcus/orcus_import_ods.hpp>
#include <orcusfiltersimpl.hxx>
#include <config_folders.h>
+#include <unotools/configmgr.hxx>
#include "drwlayer.hxx"
#include "stlpool.hxx"
@@ -109,7 +110,7 @@ void ScDocShell::InitItems()
// Other modifications after creation of the DrawLayer
pDrawLayer->SetNotifyUndoActionHdl( LINK( pDocFunc, ScDocFunc, NotifyDrawUndo ) );
}
- else
+ else if (!utl::ConfigManager::IsAvoidConfig())
{
// always use global color table instead of local copy
PutItem( SvxColorListItem( XColorList::GetStdColorList(), SID_COLOR_TABLE ) );
More information about the Libreoffice-commits
mailing list