sc/source/core/tool/viewopti.cxx | 4 ++++ 1 file changed, 4 insertions(+)
New commits: commit f1ff0918b11ea2f15267759af8412f208ee39783 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Fri Jun 2 11:10:05 2023 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Fri Jun 2 12:35:38 2023 +0200 set default aDocCol in ctor to avoid white text on white bg in calc for the case that ScModule::ConfigurationChanged doesn't get called yet we want the bg to start with its default color otherwise I get white text on white background Change-Id: Ic709061d31f10c208980057d5a899bc1cde4ae7f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152551 Tested-by: Caolán McNamara <caolan.mcnam...@collabora.com> Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/sc/source/core/tool/viewopti.cxx b/sc/source/core/tool/viewopti.cxx index 9861dd0f3feb..46f3d13227e8 100644 --- a/sc/source/core/tool/viewopti.cxx +++ b/sc/source/core/tool/viewopti.cxx @@ -21,10 +21,12 @@ #include <com/sun/star/uno/Any.hxx> #include <com/sun/star/uno/Sequence.hxx> +#include <svtools/colorcfg.hxx> #include <global.hxx> #include <viewopti.hxx> #include <sc.hrc> +#include <scmod.hxx> #include <miscuno.hxx> using namespace utl; @@ -112,6 +114,8 @@ void ScViewOptions::SetDefaults() aGridCol = SC_STD_GRIDCOLOR; + aDocCol = SC_MOD()->GetColorConfig().GetColorValue(svtools::DOCCOLOR).nColor; + aGridOpt.SetDefaults(); }