diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-05-14 21:14:24 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-05-15 10:59:04 +0200 |
commit | f5a9b83cf9403594d9c37df8397fe01a103ae67e (patch) | |
tree | 5884625a814879d4fb495db13715c06ae113b11f /sw/source/uibase/config/usrpref.cxx | |
parent | d1dce8d84ad9d19897007823d5af5b9e69f3f564 (diff) |
ofz#58942 tweak so fuzzing uses the same defaults as real world writer
I have a looping document which loops in layout in the fuzzer but
not in writer but we want easy to reproduce findings rather than
load document, ctrl+a, format paragraph and set widow control to 2
Change-Id: I7739a5ebf4eaeac2152afcf8b431c42362374f2f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151741
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sw/source/uibase/config/usrpref.cxx')
-rw-r--r-- | sw/source/uibase/config/usrpref.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/source/uibase/config/usrpref.cxx b/sw/source/uibase/config/usrpref.cxx index e2599f4092b3..181b863e130c 100644 --- a/sw/source/uibase/config/usrpref.cxx +++ b/sw/source/uibase/config/usrpref.cxx @@ -57,6 +57,10 @@ SwMasterUsrPref::SwMasterUsrPref(bool bWeb) : if (utl::ConfigManager::IsFuzzing()) { m_eHScrollMetric = m_eVScrollMetric = m_eUserMetric = FieldUnit::CM; + // match defaults + SetCore2Option(true, ViewOptCoreFlags2::CursorInProt); + SetCore2Option(false, ViewOptCoreFlags2::HiddenPara); + m_nDefTabInMm100 = 1250; return; } MeasurementSystem eSystem = SvtSysLocale().GetLocaleData().getMeasurementSystemEnum(); |