chart2/source/view/charttypes/PieChart.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit cf2715782d9ccb2acf46dc316e9a8c6990bdf368
Author:     Kurt Nordback <kurt.nordb...@protonmail.com>
AuthorDate: Sun Dec 10 21:06:44 2023 -0700
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Mon Feb 19 12:19:33 2024 +0100

    tdf#50934: Fix color of composite wedge for imported of-pie charts
    
    Change-Id: I5236ed53e418e31a470a66bdbe21eceaa5f6fc04
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160739
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/chart2/source/view/charttypes/PieChart.cxx 
b/chart2/source/view/charttypes/PieChart.cxx
index 6d2f0ce091aa..b70fde756c74 100644
--- a/chart2/source/view/charttypes/PieChart.cxx
+++ b/chart2/source/view/charttypes/PieChart.cxx
@@ -1193,7 +1193,7 @@ void PieChart::createOneRing([[maybe_unused]]enum 
SubPieType eType,
                     pSeries->getTotalPointCount() :
                     nPointIndex);
             ///point color:
-            if (!pSeries->hasPointOwnColor(nPointIndex) && m_xColorScheme.is())
+            if (!pSeries->hasPointOwnColor(nPropIdx) && m_xColorScheme.is())
             {
                 xPointShape->setPropertyValue("FillColor",
                     uno::Any(m_xColorScheme->getColorByIndex( nPropIdx )));

Reply via email to