summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2022-08-12 17:36:23 +0200
committerTomaž Vajngerl <quikee@gmail.com>2022-08-25 07:27:32 +0200
commit4f548157e44ccbf91a5662ba3cfd0870759384df (patch)
tree137e38cd742b7beabb41806e132204acc6548f4f /chart2
parent25cf1afd485d6ff7a7278aa2260082596ca4d0f7 (diff)
chart2: use the FillColor property as CharBackColor
For chart data table, the fill is always setting the char background (highlight). As we don't support other fill types in LibreOffice for the char background, we can't set anything else when rendering. We need to extend editeng and UNO API with the support for this. Change-Id: I47d342e02ad2347bac0515a62cc0de4391f98150 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138331 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> (cherry picked from commit 65021c6acc655b61cbba74d01829beb1c4181c97) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138780 Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/view/main/DataTableView.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/chart2/source/view/main/DataTableView.cxx b/chart2/source/view/main/DataTableView.cxx
index e7f577f04af3..e8de2ff0846c 100644
--- a/chart2/source/view/main/DataTableView.cxx
+++ b/chart2/source/view/main/DataTableView.cxx
@@ -140,6 +140,9 @@ void DataTableView::setCellCharAndParagraphProperties(
copyProperty(xPropertySet, xDataTableProperties, "CharWeightComplex");
copyProperty(xPropertySet, xDataTableProperties, "CharWordMode");
+ xPropertySet->setPropertyValue("CharBackColor",
+ xDataTableProperties->getPropertyValue("FillColor"));
+
xPropertySet->setPropertyValue("ParaAdjust", uno::makeAny(style::ParagraphAdjust_CENTER));
}