summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGülşah Köse <gulsah.kose@collabora.com>2019-01-21 17:31:36 +0300
committerAndras Timar <andras.timar@collabora.com>2019-01-21 21:11:35 +0100
commit4e441a35799738180d64f47508ef3f7d3c8d3d35 (patch)
tree9db0a01fe45ceef17336c0333841f8fe833d01e1
parentf3b2383b2c8967ad57c8b9316395edcb297121ed (diff)
tdf#122031 Change element order for OOXML compatibility.
Change-Id: I8cca2db6157996dd25afa4c95e769725188fdfb9 Signed-off-by: Gülşah Köse <gulsah.kose@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/66686 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Jenkins (cherry picked from commit 1e38d5b976dacd8b42b8330b4b9635a058ffe20b) Reviewed-on: https://gerrit.libreoffice.org/66702 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com>
-rw-r--r--oox/source/export/chartexport.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx
index 2f4b55fcd2d8..37c267dcbcd3 100644
--- a/oox/source/export/chartexport.cxx
+++ b/oox/source/export/chartexport.cxx
@@ -3168,6 +3168,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"))
{
@@ -3182,7 +3183,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));