Kaydet (Commit) 5922f9af authored tarafından Caolán McNamara's avatar Caolán McNamara

survive without config

Change-Id: I410e486acc206ae2981fd16a9e2780dbd4d27af5
üst 3e2df29c
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment