chart2/source/view/main/DataTableView.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 65021c6acc655b61cbba74d01829beb1c4181c97
Author:     Tomaž Vajngerl <tomaz.vajng...@collabora.co.uk>
AuthorDate: Fri Aug 12 17:36:23 2022 +0200
Commit:     Tomaž Vajngerl <qui...@gmail.com>
CommitDate: Tue Aug 16 15:51:11 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>

diff --git a/chart2/source/view/main/DataTableView.cxx 
b/chart2/source/view/main/DataTableView.cxx
index d413372e87c6..a78c05c14822 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::Any(style::ParagraphAdjust_CENTER));
 }
 

Reply via email to