summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-07-31 10:21:48 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-07-31 14:47:22 +0200
commit875b07aa623d2cc5e39b058e326cb0f3b792b905 (patch)
tree831518c49ff16f2a5e129a7dc1bc362e726f8a88 /sc
parentb8dbf58a03679386a44d3fe6c95775ae19716010 (diff)
avoid config for fuzzing
Change-Id: I039d86e897bce1d7d6467c7914faaf31f679abb5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99857 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/docshell/docsh3.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/sc/source/ui/docshell/docsh3.cxx b/sc/source/ui/docshell/docsh3.cxx
index 552d03820b39..074726c75e49 100644
--- a/sc/source/ui/docshell/docsh3.cxx
+++ b/sc/source/ui/docshell/docsh3.cxx
@@ -34,6 +34,7 @@
#include <svx/pageitem.hxx>
#include <svx/postattr.hxx>
#include <svx/svxids.hrc>
+#include <unotools/configmgr.hxx>
#include <vcl/svapp.hxx>
#include <vcl/virdev.hxx>
#include <vcl/weld.hxx>
@@ -412,8 +413,11 @@ void ScDocShell::InitOptions(bool bForLoading) // called from InitNew and L
ScViewOptions aViewOpt = pScMod->GetViewOptions();
aDocOpt.SetAutoSpell( bAutoSpell );
- // two-digit year entry from Tools->Options->General
- aDocOpt.SetYear2000(officecfg::Office::Common::DateFormat::TwoDigitYear::get());
+ if (!utl::ConfigManager::IsFuzzing())
+ {
+ // two-digit year entry from Tools->Options->General
+ aDocOpt.SetYear2000(officecfg::Office::Common::DateFormat::TwoDigitYear::get());
+ }
if (bForLoading)
{