chart2/source/model/template/ChartTypeTemplate.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit d186dd8958a5f28abcf6da8af63f8e597861305b
Author:     Noel Grandin <[email protected]>
AuthorDate: Fri Jun 14 15:43:22 2024 +0200
Commit:     Adolfo Jayme Barrientos <[email protected]>
CommitDate: Fri Jun 14 22:36:51 2024 +0200

    tdf#160522 Chart > 4 columns, Only 4 colors
    
    regression from
        commit 337a9a454c1bc95214111578d3f9c0622c55c509
        Author: Noel Grandin <[email protected]>
        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 <[email protected]>
    (cherry picked from commit 013282b1421c0bba66ef54ccbfe4a649a4b97628)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168879
    Reviewed-by: Adolfo Jayme Barrientos <[email protected]>
    Tested-by: Adolfo Jayme Barrientos <[email protected]>

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

Reply via email to