include/oox/export/chartexport.hxx |    2 +-
 oox/source/export/chartexport.cxx  |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit de59062d95605e5c91d687e3441399ffb05ff2dc
Author:     Gülşah Köse <gulsah.k...@collabora.com>
AuthorDate: Fri Sep 18 15:45:17 2020 +0300
Commit:     Gülşah Köse <gulsah.k...@collabora.com>
CommitDate: Mon Sep 21 09:33:19 2020 +0200

    tdf#136247 Change element order of data labels
    
    Reference OOXML (Appendix B.5.1, line 248)
    
    Change-Id: Idf5c2546b4ad65c8e78ca03e18ecfa575ef17fe8
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103005
    Tested-by: Jenkins
    Reviewed-by: Gülşah Köse <gulsah.k...@collabora.com>

diff --git a/include/oox/export/chartexport.hxx 
b/include/oox/export/chartexport.hxx
index 5faaf42cb1d1..b900c68b51a2 100644
--- a/include/oox/export/chartexport.hxx
+++ b/include/oox/export/chartexport.hxx
@@ -179,7 +179,6 @@ private:
     void exportSeriesValues(
         const css::uno::Reference< css::chart2::data::XDataSequence >& 
xValueSeq, sal_Int32 nValueType = XML_val );
     void exportShapeProps( const css::uno::Reference< css::beans::XPropertySet 
>& xPropSet );
-    void exportTextProps(const css::uno::Reference< css::beans::XPropertySet 
>& xPropSet);
     void exportDataPoints(
         const css::uno::Reference< css::beans::XPropertySet >& 
xSeriesProperties,
         sal_Int32 nSeriesLength, sal_Int32 eChartType );
@@ -224,6 +223,7 @@ public:
     const css::uno::Reference< css::frame::XModel >& getModel() const { return 
mxChartModel; }
 
     void WriteChartObj( const css::uno::Reference< css::drawing::XShape >& 
xShape, sal_Int32 nID, sal_Int32 nChartCount );
+    void exportTextProps(const css::uno::Reference< css::beans::XPropertySet 
>& xPropSet);
 
     void ExportContent();
     void InitRangeSegmentationProperties(
diff --git a/oox/source/export/chartexport.cxx 
b/oox/source/export/chartexport.cxx
index 4d830f37c6ba..fd33d9a38bc8 100644
--- a/oox/source/export/chartexport.cxx
+++ b/oox/source/export/chartexport.cxx
@@ -3450,6 +3450,8 @@ void writeLabelProperties( const FSHelperPtr& pFS, 
ChartExport* pChartExport,
         pFS->endElement(FSNS(XML_c, XML_spPr));
     }
 
+    pChartExport->exportTextProps(xPropSet);
+
     if (aCustomLabelFields.hasElements())
         writeCustomLabel(pFS, pChartExport, aCustomLabelFields);
 
@@ -3616,12 +3618,10 @@ void ChartExport::exportDataLabels(
         }
 
         // Individual label property that overwrites the baseline.
-        exportTextProps( xLabelPropSet );
         writeLabelProperties(pFS, this, xLabelPropSet, aParam);
         pFS->endElement(FSNS(XML_c, XML_dLbl));
     }
 
-    exportTextProps( xPropSet );
     // Baseline label properties for all labels.
     writeLabelProperties(pFS, this, xPropSet, aParam);
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to