chart2/qa/extras/chart2import.cxx         |   10 ++++++++++
 chart2/qa/extras/data/xlsx/tdf111173.xlsx |binary
 2 files changed, 10 insertions(+)

New commits:
commit 5ae6c3991f5fb875667b487ee585b7e9663efdbb
Author: Marco Cecchetti <marco.cecche...@collabora.com>
Date:   Tue Aug 8 15:25:28 2017 +0200

    unit test for tdf#111173
    
    Change-Id: I9b9a1f3c38c1402c436fd6815916be3dabf71447
    Reviewed-on: https://gerrit.libreoffice.org/40886
    Reviewed-by: Miklos Vajna <vmik...@collabora.co.uk>
    Tested-by: Miklos Vajna <vmik...@collabora.co.uk>

diff --git a/chart2/qa/extras/chart2import.cxx 
b/chart2/qa/extras/chart2import.cxx
index 0e4b269a58a3..ca690298827e 100644
--- a/chart2/qa/extras/chart2import.cxx
+++ b/chart2/qa/extras/chart2import.cxx
@@ -94,6 +94,8 @@ public:
     void testSecondaryAxisTitleDefaultRotationXLSX();
     void testAxisTitleRotationXLSX();
 
+    void testTdf111173();
+
     void testInternalDataProvider();
 
     CPPUNIT_TEST_SUITE(Chart2ImportTest);
@@ -148,6 +150,7 @@ public:
     CPPUNIT_TEST(testAxisTitleDefaultRotationXLSX);
     CPPUNIT_TEST(testSecondaryAxisTitleDefaultRotationXLSX);
     CPPUNIT_TEST(testAxisTitleRotationXLSX);
+    CPPUNIT_TEST(testTdf111173);
 
     CPPUNIT_TEST(testInternalDataProvider);
 
@@ -1247,6 +1250,13 @@ void Chart2ImportTest::testInternalDataProvider() {
     CPPUNIT_ASSERT_EQUAL(uno::Any(OUString("world")), xSequence[3]);
 }
 
+void Chart2ImportTest::testTdf111173()
+{
+    load("/chart2/qa/extras/data/xlsx/", "tdf111173.xlsx");
+    uno::Reference< chart::XChartDocument > xChart1Doc( getChartCompFromSheet( 
0, mxComponent ), UNO_QUERY_THROW );
+    CPPUNIT_ASSERT_MESSAGE( "failed to load chart", xChart1Doc.is() );
+}
+
 CPPUNIT_TEST_SUITE_REGISTRATION(Chart2ImportTest);
 
 CPPUNIT_PLUGIN_IMPLEMENT();
diff --git a/chart2/qa/extras/data/xlsx/tdf111173.xlsx 
b/chart2/qa/extras/data/xlsx/tdf111173.xlsx
new file mode 100755
index 000000000000..e62c6747b5f7
Binary files /dev/null and b/chart2/qa/extras/data/xlsx/tdf111173.xlsx differ
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to