summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorBalazs Varga <balazs.varga991@gmail.com>2019-08-29 11:08:04 +0200
committerXisco Faulí <xiscofauli@libreoffice.org>2019-09-02 10:33:38 +0200
commit55dbf08740ffefd6dd08d4bcea0638a15117dc65 (patch)
tree1ef755a28f371a339511afba7b6dbb9a1b5d1ab6 /chart2
parent6c6f459f32144d06385bd542944f24afef0240eb (diff)
tdf#103988 OOXML export: fix bubble chart MSO interoperability
Write <c:bubble3D val="0"/> into each <CT_BubbleSer> OOXML element to allow file opening in MSO without removing the (previously "corrupted") bubble chart. Change-Id: Idf31a0d3d8f98a3be4c9a3b29e65d4d4c582be53 Reviewed-on: https://gerrit.libreoffice.org/78259 Reviewed-by: László Németh <nemeth@numbertext.org> Tested-by: László Németh <nemeth@numbertext.org> (cherry picked from commit 5b97e75589523b3769ec87e27854e2c841d0d79f) Reviewed-on: https://gerrit.libreoffice.org/78378 Tested-by: Jenkins Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/qa/extras/chart2export.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/chart2/qa/extras/chart2export.cxx b/chart2/qa/extras/chart2export.cxx
index 03d7f485f972..c6aaf0e02509 100644
--- a/chart2/qa/extras/chart2export.cxx
+++ b/chart2/qa/extras/chart2export.cxx
@@ -1546,7 +1546,9 @@ void Chart2ExportTest::testBubble3DXLSX()
load("/chart2/qa/extras/data/xlsx/", "bubble_chart_simple.xlsx");
xmlDocPtr pXmlDoc = parseExport("xl/charts/chart", "Calc Office Open XML");
CPPUNIT_ASSERT(pXmlDoc);
- assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:plotArea/c:bubbleChart/c:bubble3D", "val", "0");
+ assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:plotArea/c:bubbleChart/c:ser[1]/c:bubble3D", "val", "0");
+ assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:plotArea/c:bubbleChart/c:ser[2]/c:bubble3D", "val", "0");
+ assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:plotArea/c:bubbleChart/c:ser[3]/c:bubble3D", "val", "0");
}
void Chart2ExportTest::testNoMarkerXLSX()