diff options
author | Balazs Varga <balazs.varga991@gmail.com> | 2020-08-12 08:34:42 +0200 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2020-08-23 13:05:46 +0200 |
commit | 886c2e35fadc7813498da041fc4ea8a8ba2fb358 (patch) | |
tree | 32e5d766192acc68043d414a754cef96ce8e11ab /chart2 | |
parent | 46911d142952a4bf01d5b82816ffd8ab3da7710e (diff) |
tdf#134118 Chart OOXML import: fix gaps in month based data
Leave gaps instead of zeroes, like MSO does, if data ranges
contain empty cells at month based time resolution.
Change-Id: Ie934b56d9d5cb556bcca41e0e4ddce3ea65f7228
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100573
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/qa/extras/chart2export.cxx | 11 | ||||
-rw-r--r-- | chart2/qa/extras/data/xlsx/tdf134118.xlsx | bin | 0 -> 16014 bytes |
2 files changed, 11 insertions, 0 deletions
diff --git a/chart2/qa/extras/chart2export.cxx b/chart2/qa/extras/chart2export.cxx index 948aaec6700a..4be864c69ce4 100644 --- a/chart2/qa/extras/chart2export.cxx +++ b/chart2/qa/extras/chart2export.cxx @@ -157,6 +157,7 @@ public: void testTdf121744(); void testTdf122031(); void testTdf115012(); + void testTdf134118(); void testTdf123206_customLabelText(); void testCustomLabelText(); void testDeletedLegendEntries(); @@ -295,6 +296,7 @@ public: CPPUNIT_TEST(testTdf121744); CPPUNIT_TEST(testTdf122031); CPPUNIT_TEST(testTdf115012); + CPPUNIT_TEST(testTdf134118); CPPUNIT_TEST(testTdf123206_customLabelText); CPPUNIT_TEST(testCustomLabelText); CPPUNIT_TEST(testDeletedLegendEntries); @@ -2571,6 +2573,15 @@ void Chart2ExportTest::testTdf115012() assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:dispBlanksAs", "val", "zero"); } +void Chart2ExportTest::testTdf134118() +{ + load("/chart2/qa/extras/data/xlsx/", "tdf134118.xlsx"); + xmlDocUniquePtr pXmlDoc = parseExport("xl/charts/chart", "Calc Office Open XML"); + CPPUNIT_ASSERT(pXmlDoc); + // workaround: use leave-gap instead of zero to show the original line chart + assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:dispBlanksAs", "val", "gap"); +} + void Chart2ExportTest::testTdf123206_customLabelText() { load("/chart2/qa/extras/data/docx/", "tdf123206.docx"); diff --git a/chart2/qa/extras/data/xlsx/tdf134118.xlsx b/chart2/qa/extras/data/xlsx/tdf134118.xlsx Binary files differnew file mode 100644 index 000000000000..ca86fb8cf118 --- /dev/null +++ b/chart2/qa/extras/data/xlsx/tdf134118.xlsx |