sc/source/ui/docshell/docsh3.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
New commits: commit 875b07aa623d2cc5e39b058e326cb0f3b792b905 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Fri Jul 31 10:21:48 2020 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Fri Jul 31 14:47:22 2020 +0200 avoid config for fuzzing Change-Id: I039d86e897bce1d7d6467c7914faaf31f679abb5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99857 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> 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) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits