diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-10-27 16:43:29 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-10-27 16:43:58 +0100 |
commit | 5922f9af749ff53e3bda2ff60a52116bf999a8a0 (patch) | |
tree | ec4bed455cec785557ea85e4c28ab8f5b6f160cb /svx/source/xoutdev/xtabcolr.cxx | |
parent | 3e2df29c520a7bc0c2cc4b37d42fb9bcd52da60f (diff) |
survive without config
Change-Id: I410e486acc206ae2981fd16a9e2780dbd4d27af5
Diffstat (limited to 'svx/source/xoutdev/xtabcolr.cxx')
-rw-r--r-- | svx/source/xoutdev/xtabcolr.cxx | 5 |
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() |