chart2/source/view/main/DataTableView.cxx | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit 4f548157e44ccbf91a5662ba3cfd0870759384df Author: Tomaž Vajngerl <tomaz.vajng...@collabora.co.uk> AuthorDate: Fri Aug 12 17:36:23 2022 +0200 Commit: Tomaž Vajngerl <qui...@gmail.com> CommitDate: Thu Aug 25 07:27:32 2022 +0200 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 <qui...@gmail.com> (cherry picked from commit 65021c6acc655b61cbba74d01829beb1c4181c97) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138780 Tested-by: Tomaž Vajngerl <qui...@gmail.com> 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)); }