summaryrefslogtreecommitdiff
path: root/svx/source/xoutdev/xtabcolr.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-10-27 16:43:29 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-10-27 16:43:58 +0100
commit5922f9af749ff53e3bda2ff60a52116bf999a8a0 (patch)
treeec4bed455cec785557ea85e4c28ab8f5b6f160cb /svx/source/xoutdev/xtabcolr.cxx
parent3e2df29c520a7bc0c2cc4b37d42fb9bcd52da60f (diff)
survive without config
Change-Id: I410e486acc206ae2981fd16a9e2780dbd4d27af5
Diffstat (limited to 'svx/source/xoutdev/xtabcolr.cxx')
-rw-r--r--svx/source/xoutdev/xtabcolr.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/svx/source/xoutdev/xtabcolr.cxx b/svx/source/xoutdev/xtabcolr.cxx
index 04376c564dff..0a148eb1b084 100644
--- a/svx/source/xoutdev/xtabcolr.cxx
+++ b/svx/source/xoutdev/xtabcolr.cxx
@@ -19,6 +19,7 @@
#include <memory>
#include <svx/XPropertyTable.hxx>
+#include <unotools/configmgr.hxx>
#include <unotools/pathoptions.hxx>
#include <svx/strings.hrc>
@@ -34,7 +35,9 @@ XColorListRef XColorList::CreateStdColorList()
{
return XPropertyList::AsColorList(
XPropertyList::CreatePropertyList(
- XPropertyListType::Color, SvtPathOptions().GetPalettePath(), ""));
+ XPropertyListType::Color, !utl::ConfigManager::IsAvoidConfig() ?
+ SvtPathOptions().GetPalettePath() :
+ "", ""));
}
XColorListRef XColorList::GetStdColorList()