summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-05-17 22:00:07 +0100
committerMiklos Vajna <vmiklos@collabora.com>2024-05-27 14:42:55 +0200
commitf29be6b680dd8ce5d15283ec5d18dba0bc0dc504 (patch)
treebba2738a2b8d14dde3363abd0c3d91ab2735376d
parentba0f1432e2162d32103e20d2030cf79b3dd4e2f7 (diff)
Resolves: tdf#161057 draw/impress auto font color not updated on theme change
Change-Id: Id3d02c38e3bbda34f65f5623fff1a5f39238e46a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167812 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
-rw-r--r--sd/source/ui/view/drviewsk.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sd/source/ui/view/drviewsk.cxx b/sd/source/ui/view/drviewsk.cxx
index 92a00d5d2ded..bdbb821e96b3 100644
--- a/sd/source/ui/view/drviewsk.cxx
+++ b/sd/source/ui/view/drviewsk.cxx
@@ -23,7 +23,9 @@ void DrawViewShell::ConfigurationChanged( utl::ConfigurationBroadcaster* pCb, Co
{
svtools::ColorConfig *pColorConfig = dynamic_cast<svtools::ColorConfig*>(pCb);
ConfigureAppBackgroundColor(pColorConfig);
- if (comphelper::LibreOfficeKit::isActive())
+ if (!comphelper::LibreOfficeKit::isActive())
+ maViewOptions.mnDocBackgroundColor = pColorConfig->GetColorValue(svtools::DOCCOLOR).nColor;
+ else
{
SfxViewShell* pCurrentShell = SfxViewShell::Current();
ViewShellBase* pShellBase = dynamic_cast<ViewShellBase*>(pCurrentShell);