chart2/source/model/template/ChartTypeTemplate.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 013282b1421c0bba66ef54ccbfe4a649a4b97628 Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Fri Jun 14 15:43:22 2024 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Fri Jun 14 19:02:48 2024 +0200 tdf#160522 Chart > 4 columns, Only 4 colors regression from commit 337a9a454c1bc95214111578d3f9c0622c55c509 Author: Noel Grandin <noel.gran...@collabora.co.uk> Date: Mon May 18 09:17:04 2020 +0200 use for-range on Sequence in chart2 Change-Id: I94f9460e45e5910af1de905605158f9dc1dbedfb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168868 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/chart2/source/model/template/ChartTypeTemplate.cxx b/chart2/source/model/template/ChartTypeTemplate.cxx index a0a607802677..8e6e83fc9a7a 100644 --- a/chart2/source/model/template/ChartTypeTemplate.cxx +++ b/chart2/source/model/template/ChartTypeTemplate.cxx @@ -220,7 +220,8 @@ void ChartTypeTemplate::changeDiagram( const rtl::Reference< Diagram >& xDiagram for( auto const & j : i ) { if( nIndex >= nFormerSeriesCount ) - lcl_applyDefaultStyle( j, nIndex++, xDiagram ); + lcl_applyDefaultStyle( j, nIndex, xDiagram ); + nIndex++; } // remove charttype groups from all coordinate systems