diff options
author | Ravindra Vidhate <ravindra.vidhate@synerzip.com> | 2014-03-10 17:36:05 +0530 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-03-12 01:58:59 +0100 |
commit | ede99e0daa0701e2d8568d7ed00e2221a4f6a9f6 (patch) | |
tree | 3277dd11ed41bb948e5307103b1368607ad97968 /chart2/qa | |
parent | 76aa23c59b4c81ea7b9d974a1a0a9e39c6bf8741 (diff) |
fdo#75975 crash while saving the DOCX file containing charts
1. Open DOCX file containing Charts
2. Save this file into DOCX format.
3. LO crashed while saving/exporting to DOCX format.
Conflicts:
chart2/qa/extras/chart2export.cxx
Change-Id: I14d4f2c214ce3513b4bd14831771d72498e4486d
Diffstat (limited to 'chart2/qa')
-rw-r--r-- | chart2/qa/extras/chart2export.cxx | 9 | ||||
-rw-r--r-- | chart2/qa/extras/data/docx/FDO75975.docx | bin | 0 -> 18257 bytes |
2 files changed, 9 insertions, 0 deletions
diff --git a/chart2/qa/extras/chart2export.cxx b/chart2/qa/extras/chart2export.cxx index 0dd8d63552ae..e328f90202ba 100644 --- a/chart2/qa/extras/chart2export.cxx +++ b/chart2/qa/extras/chart2export.cxx @@ -50,6 +50,7 @@ public: void testPieChartDataLabels(); void testSeriesIdxOrder(); void testErrorBarDataRangeODS(); + void testChartCrash(); CPPUNIT_TEST_SUITE(Chart2ExportTest); CPPUNIT_TEST(test); @@ -72,6 +73,7 @@ public: CPPUNIT_TEST(testPieChartDataLabels); CPPUNIT_TEST(testSeriesIdxOrder); CPPUNIT_TEST(testErrorBarDataRangeODS); + CPPUNIT_TEST(testChartCrash); CPPUNIT_TEST_SUITE_END(); protected: @@ -653,6 +655,13 @@ void Chart2ExportTest::testErrorBarDataRangeODS() CPPUNIT_ASSERT_EQUAL(OUString("$Sheet1.$C$1:$C$3"), aNegRange); } +void Chart2ExportTest::testChartCrash() +{ + load("/chart2/qa/extras/data/docx/", "FDO75975.docx"); + xmlDocPtr pXmlDoc = parseExport("word/charts/chart", "Office Open XML Text"); + CPPUNIT_ASSERT(pXmlDoc); +} + CPPUNIT_TEST_SUITE_REGISTRATION(Chart2ExportTest); CPPUNIT_PLUGIN_IMPLEMENT(); diff --git a/chart2/qa/extras/data/docx/FDO75975.docx b/chart2/qa/extras/data/docx/FDO75975.docx Binary files differnew file mode 100644 index 000000000000..30f251014b4a --- /dev/null +++ b/chart2/qa/extras/data/docx/FDO75975.docx |