[Libreoffice-commits] core.git: filter/source
Caolán McNamara
caolanm at redhat.com
Thu Jan 12 20:56:34 UTC 2017
filter/source/graphicfilter/idxf/dxfreprd.cxx | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit 1cd1b640f428763de7eeebe2edaf8f9b062c0b1d
Author: Caolán McNamara <caolanm at redhat.com>
Date: Thu Jan 12 20:54:36 2017 +0000
ofz: avoid config during fuzzing
Change-Id: Ia5fa7a9c3304483e69db31256b9ffb22bb152c62
diff --git a/filter/source/graphicfilter/idxf/dxfreprd.cxx b/filter/source/graphicfilter/idxf/dxfreprd.cxx
index 4373e51..c813723 100644
--- a/filter/source/graphicfilter/idxf/dxfreprd.cxx
+++ b/filter/source/graphicfilter/idxf/dxfreprd.cxx
@@ -23,7 +23,8 @@
#include "osl/nlsupport.h"
#include "officecfg/Setup.hxx"
#include "officecfg/Office/Linguistic.hxx"
-#include "unotools/wincodepage.hxx"
+#include <unotools/wincodepage.hxx>
+#include <unotools/configmgr.hxx>
//------------------DXFBoundingBox--------------------------------------------
@@ -145,6 +146,9 @@ namespace {
OUString getLODefaultLanguage()
{
+ if (utl::ConfigManager::IsAvoidConfig())
+ return OUString("en-US");
+
OUString result(officecfg::Office::Linguistic::General::DefaultLocale::get());
if (result.isEmpty())
result = officecfg::Setup::L10N::ooSetupSystemLocale::get();
More information about the Libreoffice-commits
mailing list