https://bugs.documentfoundation.org/show_bug.cgi?id=148142
Julien Nabet <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected], | |[email protected] --- Comment #2 from Julien Nabet <[email protected]> --- It works with this patch: diff --git a/xmloff/source/chart/SchXMLExport.cxx b/xmloff/source/chart/SchXMLExport.cxx index 8bc776e5e421..616300000ea4 100644 --- a/xmloff/source/chart/SchXMLExport.cxx +++ b/xmloff/source/chart/SchXMLExport.cxx @@ -2341,7 +2341,7 @@ void SchXMLExportHelper_Impl::exportAxis( const Reference< chart2::XAxis >& rChart2Axis, const OUString& rCategoriesRange, bool bHasTitle, bool bHasMajorGrid, bool bHasMinorGrid, - bool bExportContent, std::u16string_view sChartType ) + bool bExportContent, std::u16string_view /* sChartType */) { std::vector< XMLPropertyState > aPropertyStates; std::unique_ptr<SvXMLElementExport> pAxis; @@ -2356,13 +2356,7 @@ void SchXMLExportHelper_Impl::exportAxis( { chart2::ScaleData aScaleData(rChart2Axis->getScaleData()); bool bShiftedCatPos = aScaleData.ShiftedCategoryPosition; - if (sChartType == u"com.sun.star.chart.BarDiagram" || sChartType == u"com.sun.star.chart.StockDiagram") - { - if (!bShiftedCatPos) - rAxisProps->setPropertyValue("MajorOrigin", uno::makeAny(0.0)); - } - else if (bShiftedCatPos) - rAxisProps->setPropertyValue("MajorOrigin", uno::makeAny(0.5)); + rAxisProps->setPropertyValue("MajorOrigin", uno::makeAny(bShiftedCatPos?0.5:0.0)); } lcl_exportNumberFormat( "NumberFormat", rAxisProps, mrExport ); Tünde/László: any thoughts here about what was the use of testing sChartType ? -- You are receiving this mail because: You are the assignee for the bug.
