diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-08-20 14:14:11 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-08-20 16:12:22 +0100 |
commit | 77dc6b346ad56b38ec41dc39887388d86548b712 (patch) | |
tree | a3ea7e1c2497e9ce9ed40a396a8b4fb705a82ed1 /svl | |
parent | 27dec7c2b1ce0a25ff42465bd4db8ecfc912ec73 (diff) |
tweak config-less sysconfig path
Change-Id: I9b93b740aab2e6e2a19612d8ec41e699c1032e9e
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/numbers/zforlist.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/svl/source/numbers/zforlist.cxx b/svl/source/numbers/zforlist.cxx index 8b0098557f26..db8e67d19d04 100644 --- a/svl/source/numbers/zforlist.cxx +++ b/svl/source/numbers/zforlist.cxx @@ -26,6 +26,7 @@ #include <comphelper/string.hxx> #include <tools/debug.hxx> #include <unotools/charclass.hxx> +#include <unotools/configmgr.hxx> #include <i18nlangtag/mslangid.hxx> #include <unotools/localedatawrapper.hxx> #include <unotools/numberformatcodewrapper.hxx> @@ -3125,7 +3126,9 @@ sal_uInt16 SvNumberFormatter::ExpandTwoDigitYear( sal_uInt16 nYear ) const // static sal_uInt16 SvNumberFormatter::GetYear2000Default() { - return (sal_uInt16) ::utl::MiscCfg().GetYear2000(); + if (!utl::ConfigManager::IsAvoidConfig()) + return (sal_uInt16) ::utl::MiscCfg().GetYear2000(); + return 1930; } |