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

New commits:
commit 071007d83d9d29fa7879b71b0e7b396da70963a5
Author:     Balazs Varga <balazs.varga...@gmail.com>
AuthorDate: Wed Nov 13 16:14:31 2019 +0100
Commit:     László Németh <nem...@numbertext.org>
CommitDate: Mon Nov 18 15:03:29 2019 +0100

    tdf#127777 fix "CrossBetween" for not imported combined chart
    
    Set the ShiftedCategoryPosition for true in case of combined chart.
    
    See also commit 111c260ab2883b7906f1a66e222dbf4dc3c58c4f 'tdf#127777
    OOXML chart export: fix "CrossBetween" for not imported charts
    
    Change-Id: I52fdcdc52e75ac15c85e04c2982b25cc180d7815
    Reviewed-on: https://gerrit.libreoffice.org/82617
    Tested-by: Jenkins
    Reviewed-by: László Németh <nem...@numbertext.org>
    Tested-by: László Németh <nem...@numbertext.org>

diff --git a/chart2/source/model/template/ChartTypeTemplate.cxx 
b/chart2/source/model/template/ChartTypeTemplate.cxx
index c18851796ada..afd9eb0f048a 100644
--- a/chart2/source/model/template/ChartTypeTemplate.cxx
+++ b/chart2/source/model/template/ChartTypeTemplate.cxx
@@ -626,7 +626,10 @@ void ChartTypeTemplate::adaptScales(
                             Reference< XChartType > 
xChartType(getChartTypeForNewSeries(Sequence< Reference< XChartType > >()));
                             if( aData.AxisType == AxisType::CATEGORY )
                             {
-                                aData.ShiftedCategoryPosition = 
::chart::ChartTypeHelper::shiftCategoryPosAtXAxisPerDefault(xChartType);
+                                if( !m_aServiceName.endsWith("ColumnWithLine") 
)
+                                    aData.ShiftedCategoryPosition = 
::chart::ChartTypeHelper::shiftCategoryPosAtXAxisPerDefault(xChartType);
+                                else
+                                    aData.ShiftedCategoryPosition = true;
                             }
                             bool bSupportsDates = 
::chart::ChartTypeHelper::isSupportingDateAxis( xChartType, nDimensionX );
                             if( aData.AxisType != AxisType::CATEGORY && ( 
aData.AxisType != AxisType::DATE || !bSupportsDates) )
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to