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.grandin@collabora.co.uk>
diff --git a/chart2/source/view/charttypes/PieChart.cxx b/chart2/source/view/charttypes/PieChart.cxx
index 6d2f0ce..b70fde7 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 )));