summaryrefslogtreecommitdiff
path: root/chart2/qa
diff options
context:
space:
mode:
authorBalazs Varga <balazs.varga991@gmail.com>2018-10-08 19:31:38 +0200
committerLászló Németh <nemeth@numbertext.org>2018-10-09 09:27:56 +0200
commita1d4c2419097169cb2d51f7c11d90073766f6d9d (patch)
treedb09dff1fa5c17f137245e53efbb345ba7da13ad /chart2/qa
parent5da57ff00b23fd9969a2bfcf4e6e1e8245dfc1a3 (diff)
tdf#120341 OOXML export: fix export of Pie Chart Wall Borderline
Export LineStyle_NONE instead of default linestyle of PlotArea border, because LibreOffice make invisible the Wall shape properties in case of PIE/NET/FILLED_NET charts. Or other solution in the future is set the default LineStyle of these charts to LineStyle_NONE. Change-Id: I59e6f18058713f4a0d4c77da8760a319f9c25152 Reviewed-on: https://gerrit.libreoffice.org/61547 Tested-by: Jenkins Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'chart2/qa')
-rw-r--r--chart2/qa/extras/chart2export.cxx10
-rw-r--r--chart2/qa/extras/data/odt/testPieChartWallLineStyle.odtbin0 -> 16427 bytes
2 files changed, 10 insertions, 0 deletions
diff --git a/chart2/qa/extras/chart2export.cxx b/chart2/qa/extras/chart2export.cxx
index d170510e2294..c6efff2eaaa0 100644
--- a/chart2/qa/extras/chart2export.cxx
+++ b/chart2/qa/extras/chart2export.cxx
@@ -57,6 +57,7 @@ public:
void testDisplayUnits();
// void testFdo74115WallGradientFill();
void testFdo74115WallBitmapFill();
+ void testPieChartWallLineStyle();
void testBarChartRotation();
void testShapeFollowedByChart();
void testPieChartDataLabels();
@@ -140,6 +141,7 @@ public:
CPPUNIT_TEST(testDisplayUnits);
// CPPUNIT_TEST(testFdo74115WallGradientFill);
CPPUNIT_TEST(testFdo74115WallBitmapFill);
+ CPPUNIT_TEST(testPieChartWallLineStyle);
CPPUNIT_TEST(testBarChartRotation);
CPPUNIT_TEST(testShapeFollowedByChart);
CPPUNIT_TEST(testPieChartDataLabels);
@@ -712,6 +714,14 @@ void Chart2ExportTest::testFdo74115WallBitmapFill()
assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:plotArea/c:spPr/a:blipFill");
}
+void Chart2ExportTest::testPieChartWallLineStyle()
+{
+ load("/chart2/qa/extras/data/odt/", "testPieChartWallLineStyle.odt");
+ xmlDocPtr pXmlDoc = parseExport("word/charts/chart", "Office Open XML Text");
+ CPPUNIT_ASSERT(pXmlDoc);
+ assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:plotArea/c:spPr/a:ln/a:noFill");
+}
+
//The below test case tests the built in marker 'x' for Office 2010 in Line charts
void Chart2ExportTest::testFdo78290LineChartMarkerX()
diff --git a/chart2/qa/extras/data/odt/testPieChartWallLineStyle.odt b/chart2/qa/extras/data/odt/testPieChartWallLineStyle.odt
new file mode 100644
index 000000000000..0e1ab533b15a
--- /dev/null
+++ b/chart2/qa/extras/data/odt/testPieChartWallLineStyle.odt
Binary files differ