diff options
author | Heiko Tietze <tietze.heiko@gmail.com> | 2022-03-24 08:40:24 +0100 |
---|---|---|
committer | Heiko Tietze <heiko.tietze@documentfoundation.org> | 2022-03-24 15:36:03 +0100 |
commit | 5b2238ce779c44378f0a86e498eda39f50df3542 (patch) | |
tree | 84afa14c1494f35fa8651aba2956a9c26f7d7344 /sw | |
parent | e697506a60b85495e9863ea97438f16d7f7b457b (diff) |
Resolves tdf#140439 - AutoFormat Table preview not using DOCCOLOR
WYSIWYG preview should use the actual document color instead
the dialog/window background
Change-Id: Ifff07b2f754ed88cb7e60e0494092e266d3c7cf1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132023
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/table/autoformatpreview.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/ui/table/autoformatpreview.cxx b/sw/source/ui/table/autoformatpreview.cxx index ed101b60a81c..2a2318252c9f 100644 --- a/sw/source/ui/table/autoformatpreview.cxx +++ b/sw/source/ui/table/autoformatpreview.cxx @@ -36,6 +36,8 @@ #include <drawinglayer/processor2d/baseprocessor2d.hxx> #include <drawinglayer/processor2d/processor2dtools.hxx> #include <strings.hrc> +#include <svtools/colorcfg.hxx> +#include <swmodule.hxx> #include <autoformatpreview.hxx> @@ -442,7 +444,7 @@ void AutoFormatPreview::Paint(vcl::RenderContext& rRenderContext, const tools::R rRenderContext.SetFont(aFont); rRenderContext.SetLineColor(); - const Color& rWinColor = rRenderContext.GetSettings().GetStyleSettings().GetWindowColor(); + const Color& rWinColor = SW_MOD()->GetColorConfig().GetColorValue(::svtools::DOCCOLOR).nColor; rRenderContext.SetBackground(Wallpaper(rWinColor)); rRenderContext.SetFillColor(rWinColor); |