summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2022-02-16 20:02:01 +0100
committerMiklos Vajna <vmiklos@collabora.com>2022-02-17 08:23:15 +0100
commit8cc70d18c4507a746607fe5922b7c5e94b7f7579 (patch)
tree92b23704bcabac77dfa5b896833ef6c59aec6183 /sd/source
parentb447be3ccba686c4e35d61b05b50d31045c9d1ac (diff)
sd theme: add doc model for shape fill color
In preparation of adding UNO API for this. Change-Id: Iecb2e44c43bca9e892fcb6242870ec12faa48be5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130050 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sd/source')
-rw-r--r--sd/source/ui/view/drtxtob1.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sd/source/ui/view/drtxtob1.cxx b/sd/source/ui/view/drtxtob1.cxx
index fa1f160df964..6aa73bce3301 100644
--- a/sd/source/ui/view/drtxtob1.cxx
+++ b/sd/source/ui/view/drtxtob1.cxx
@@ -827,17 +827,17 @@ void TextObjectBar::Execute( SfxRequest &rReq )
if (pArgs->GetItemState(SID_ATTR_COLOR_THEME_INDEX, false, &pItem) == SfxItemState::SET)
{
auto pIntItem = static_cast<const SfxInt16Item*>(pItem);
- pColorItem->SetThemeIndex(pIntItem->GetValue());
+ pColorItem->GetThemeColor().SetThemeIndex(pIntItem->GetValue());
}
if (pArgs->GetItemState(SID_ATTR_COLOR_LUM_MOD, false, &pItem) == SfxItemState::SET)
{
auto pIntItem = static_cast<const SfxInt16Item*>(pItem);
- pColorItem->SetLumMod(pIntItem->GetValue());
+ pColorItem->GetThemeColor().SetLumMod(pIntItem->GetValue());
}
if (pArgs->GetItemState(SID_ATTR_COLOR_LUM_OFF, false, &pItem) == SfxItemState::SET)
{
auto pIntItem = static_cast<const SfxInt16Item*>(pItem);
- pColorItem->SetLumOff(pIntItem->GetValue());
+ pColorItem->GetThemeColor().SetLumOff(pIntItem->GetValue());
}
if (pColorItem)
{