[Libreoffice-commits] core.git: oox/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Jan 21 19:44:56 UTC 2019


 oox/source/export/chartexport.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1e38d5b976dacd8b42b8330b4b9635a058ffe20b
Author:     Gülşah Köse <gulsah.kose at collabora.com>
AuthorDate: Mon Jan 21 17:31:36 2019 +0300
Commit:     Gülşah Köse <gulsah.kose at collabora.com>
CommitDate: Mon Jan 21 20:44:34 2019 +0100

    tdf#122031 Change element order for OOXML compatibility.
    
    Change-Id: I8cca2db6157996dd25afa4c95e769725188fdfb9
    Signed-off-by: Gülşah Köse <gulsah.kose at collabora.com>
    Reviewed-on: https://gerrit.libreoffice.org/66686
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
    Tested-by: Jenkins

diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx
index 28c5771eab44..5e09117183f0 100644
--- a/oox/source/export/chartexport.cxx
+++ b/oox/source/export/chartexport.cxx
@@ -3232,6 +3232,7 @@ void ChartExport::exportDataLabels(
             continue;
 
         pFS->startElement(FSNS(XML_c, XML_dLbl), FSEND);
+        pFS->singleElement(FSNS(XML_c, XML_idx), XML_val, I32S(nIdx), FSEND);
 
         if (GetProperty(xLabelPropSet, "NumberFormat") || GetProperty(xLabelPropSet, "PercentageNumberFormat"))
         {
@@ -3246,7 +3247,6 @@ void ChartExport::exportDataLabels(
         }
 
         // Individual label property that overwrites the baseline.
-        pFS->singleElement(FSNS(XML_c, XML_idx), XML_val, I32S(nIdx), FSEND);
         exportTextProps( xPropSet );
         writeLabelProperties(pFS, this, xLabelPropSet, aParam);
         pFS->endElement(FSNS(XML_c, XML_dLbl));


More information about the Libreoffice-commits mailing list