summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2023-04-12 16:04:42 +0900
committerTomaž Vajngerl <quikee@gmail.com>2023-05-09 12:41:58 +0200
commit60cc7b1fbe8e44f323016ce79a14c5c74c8b4cd0 (patch)
tree32a8b8798b16708a41c8a1fcb0325a83fb8bda36 /svx
parent33d35a2181c9cebf77bc1aa9322a2d11892de5fd (diff)
sc: enable document themes in Calc
Create and check that the SdrPage, that is associated with the current sheet, has a model::Theme available on creation. Change-Id: I1814d4a86452b1a15ef01e0b2349d435405f4b7d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150263 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdpage.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/svdraw/svdpage.cxx b/svx/source/svdraw/svdpage.cxx
index ac3bb93f81f3..b2a839a3c785 100644
--- a/svx/source/svdraw/svdpage.cxx
+++ b/svx/source/svdraw/svdpage.cxx
@@ -1218,7 +1218,7 @@ SdrPageProperties::SdrPageProperties(SdrPage& rSdrPage)
maProperties.Put(XFillStyleItem(drawing::FillStyle_NONE));
}
- if (rSdrPage.getSdrModelFromSdrPage().IsWriter() || rSdrPage.IsMasterPage())
+ //if (rSdrPage.getSdrModelFromSdrPage().IsWriter() || rSdrPage.IsMasterPage())
{
mpTheme.reset(new model::Theme("Office Theme"));
auto const* pColorSet = svx::ColorSets::get().getColorSet(u"LibreOffice");