summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorHeiko Tietze <tietze.heiko@gmail.com>2022-03-24 08:40:24 +0100
committerHeiko Tietze <heiko.tietze@documentfoundation.org>2022-03-24 15:36:03 +0100
commit5b2238ce779c44378f0a86e498eda39f50df3542 (patch)
tree84afa14c1494f35fa8651aba2956a9c26f7d7344 /sc
parente697506a60b85495e9863ea97438f16d7f7b457b (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 'sc')
-rw-r--r--sc/source/ui/miscdlgs/autofmt.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/source/ui/miscdlgs/autofmt.cxx b/sc/source/ui/miscdlgs/autofmt.cxx
index 375294c05358..877c412a5966 100644
--- a/sc/source/ui/miscdlgs/autofmt.cxx
+++ b/sc/source/ui/miscdlgs/autofmt.cxx
@@ -50,6 +50,8 @@
#include <scresid.hxx>
#include <document.hxx>
#include <viewdata.hxx>
+#include <svtools/colorcfg.hxx>
+#include <scmod.hxx>
#define FRAME_OFFSET 4
@@ -497,7 +499,7 @@ void ScAutoFmtPreview::DoPaint(vcl::RenderContext& rRenderContext)
Size aWndSize(GetOutputSizePixel());
vcl::Font aFont(aVD->GetFont());
- Color aBackCol(rRenderContext.GetSettings().GetStyleSettings().GetWindowColor());
+ const Color& aBackCol = SC_MOD()->GetColorConfig().GetColorValue( ::svtools::DOCCOLOR ).nColor;
tools::Rectangle aRect(Point(), aWndSize);
aFont.SetTransparent( true );