diff options
author | Balazs Varga <balazs.varga991@gmail.com> | 2019-05-10 09:34:30 +0200 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2019-05-13 13:16:10 +0200 |
commit | b2fc2ad7beceaff660de684435a5c37d69cf8ae9 (patch) | |
tree | 2e6275aab58021da702c37fdbe93939902ac0c88 /chart2/qa | |
parent | fed7c693de1def5211992bac288c3e9936e863bc (diff) |
tdf#100084 XLSX import: fix missing charts
caused by case-sensitive path handling of relationship files.
OOXML documents contain case-insensitive file paths, for example,
uppercase "Sheet.xml" can have a lowercase "sheet.xml.rels" in the ZIP
archive, as in the case of the XLSX documents generated by IBM Cognos.
Change-Id: I4210e3b96fb512d61e1687ec8d41a3c77292ec0c
Reviewed-on: https://gerrit.libreoffice.org/72100
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'chart2/qa')
-rw-r--r-- | chart2/qa/extras/chart2import.cxx | 12 | ||||
-rwxr-xr-x | chart2/qa/extras/data/xlsx/tdf100084.xlsx | bin | 0 -> 10070 bytes |
2 files changed, 12 insertions, 0 deletions
diff --git a/chart2/qa/extras/chart2import.cxx b/chart2/qa/extras/chart2import.cxx index 4510ac447487..affab028f46e 100644 --- a/chart2/qa/extras/chart2import.cxx +++ b/chart2/qa/extras/chart2import.cxx @@ -70,6 +70,7 @@ public: void testTdf105517(); void testTdf106217(); void testTdf108021(); + void testTdf100084(); void testAutoBackgroundXLSX(); void testAutoChartAreaBorderPropXLSX(); void testChartAreaStyleBackgroundXLSX(); @@ -158,6 +159,7 @@ public: CPPUNIT_TEST(testTdf105517); CPPUNIT_TEST(testTdf106217); CPPUNIT_TEST(testTdf108021); + CPPUNIT_TEST(testTdf100084); CPPUNIT_TEST(testAutoBackgroundXLSX); CPPUNIT_TEST(testAutoChartAreaBorderPropXLSX); CPPUNIT_TEST(testChartAreaStyleBackgroundXLSX); @@ -883,6 +885,16 @@ void Chart2ImportTest::testTdf108021() CPPUNIT_ASSERT(bTextBreak); } +void Chart2ImportTest::testTdf100084() +{ + // The test file was created with IBM Cognos, so just check there is a diagram. + load("/chart2/qa/extras/data/xlsx/", "tdf100084.xlsx"); + Reference<chart2::XChartDocument> xChartDoc = getChartDocFromSheet(0, mxComponent); + CPPUNIT_ASSERT_MESSAGE("failed to load chart", xChartDoc.is()); + Reference<beans::XPropertySet> xDiagram(xChartDoc->getFirstDiagram(), UNO_QUERY); + CPPUNIT_ASSERT_MESSAGE("There should be a Diagram.", xDiagram.is()); +} + void Chart2ImportTest::testTransparentBackground(OUString const & filename) { load("/chart2/qa/extras/data/xlsx/", filename); diff --git a/chart2/qa/extras/data/xlsx/tdf100084.xlsx b/chart2/qa/extras/data/xlsx/tdf100084.xlsx Binary files differnew file mode 100755 index 000000000000..5f03f39244e5 --- /dev/null +++ b/chart2/qa/extras/data/xlsx/tdf100084.xlsx |