summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-08-20 14:14:11 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-08-20 16:12:22 +0100
commit77dc6b346ad56b38ec41dc39887388d86548b712 (patch)
treea3ea7e1c2497e9ce9ed40a396a8b4fb705a82ed1 /svl
parent27dec7c2b1ce0a25ff42465bd4db8ecfc912ec73 (diff)
tweak config-less sysconfig path
Change-Id: I9b93b740aab2e6e2a19612d8ec41e699c1032e9e
Diffstat (limited to 'svl')
-rw-r--r--svl/source/numbers/zforlist.cxx5
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;
}