summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-02-08 10:11:55 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-02-09 15:02:42 +0100
commit2a7be4a49ca52fc10975fa9fff8befcfdc50e59a (patch)
tree93a008b9a5689e2625065b9cd84810bb02952894
parent10a7dddf65b4fd9716bd8815debfa1cdd4ac184c (diff)
The special value of CaptionOrderNumberingFirst for hu is already set
...in the configuration data, cf. 552bebc85d907748dcd72b7978a00a3eee7c4f34 "/org...Writer/Insert/Caption/CaptionOrderNumberingFirst should be localized", so there should be no need to handle a nil value specially for hu here. (Any tests run during the build that don't use the configuration data will now use false instead of true for hu, but that's apparently not a problem for any of the `make check` tests, at least.) (Ideally, this property would always have been non-nillable anyway, or should at least have been included in the mass non-nillability change of e8bb827571f540ac4af2247cb11239bb96876669 "Fixed cppheader.xsl nillable treatment." But now, just leave it as it is and live with that.) Change-Id: Iec6937dccc2f5ab3d98ca530a7172f27f13a860e Reviewed-on: https://gerrit.libreoffice.org/49474 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r--sw/source/uibase/config/modcfg.cxx11
1 files changed, 1 insertions, 10 deletions
diff --git a/sw/source/uibase/config/modcfg.cxx b/sw/source/uibase/config/modcfg.cxx
index 97ec5719c6bc..a6cb03eb1ef5 100644
--- a/sw/source/uibase/config/modcfg.cxx
+++ b/sw/source/uibase/config/modcfg.cxx
@@ -32,13 +32,10 @@
#include <itabenum.hxx>
#include <modcfg.hxx>
#include <fldupde.hxx>
-#include <unotools/configmgr.hxx>
-#include <unotools/syslocaleoptions.hxx>
#include <caption.hxx>
#include <unomid.h>
-using namespace utl;
using namespace com::sun::star::uno;
#define GLOB_NAME_CALC 0
@@ -1087,13 +1084,7 @@ void SwInsertConfig::Load()
}
else if (nProp == INS_PROP_CAP_CAPTIONORDERNUMBERINGFIRST)
{
- if (!utl::ConfigManager::IsFuzzing())
- {
- //#i61007# initialize caption order, right now only HUNGARIAN seems to need a different order
- SvtSysLocaleOptions aSysLocaleOptions;
- const LanguageTag& rLang = aSysLocaleOptions.GetRealLanguageTag();
- bCaptionOrderNumberingFirst = (rLang.getLanguage() == "hu");
- }
+ bCaptionOrderNumberingFirst = false;
}
}