summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorPriyankaGaikwad <priyanka.gaikwad@synerzip.com>2014-01-28 18:28:39 +0530
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-03-12 02:41:02 +0100
commit2b6e395152b48e412d3addde7d8b3808b28d32c6 (patch)
tree5c325d9d58304e5fa91802c93d3a47b54ff772c1 /chart2
parentede99e0daa0701e2d8568d7ed00e2221a4f6a9f6 (diff)
fdo#74111 3D Rotation is wrong after Round trip for pie chart
3D Rotation is lost after Round trip for pie chart. XML Difference: Original: <c:rotX val="40"/> <c:rotY val="30"/> Round Trip: <c:rotX val="310"/> <c:rotY val="0"/> Conflicts: chart2/qa/extras/chart2export.cxx Change-Id: I60132fef071e0573b17c35f509f3a74bd4ffcc66
Diffstat (limited to 'chart2')
-rw-r--r--chart2/qa/extras/chart2export.cxx11
-rw-r--r--chart2/qa/extras/data/docx/pieChartRotation.docxbin0 -> 23528 bytes
2 files changed, 11 insertions, 0 deletions
diff --git a/chart2/qa/extras/chart2export.cxx b/chart2/qa/extras/chart2export.cxx
index e328f90202ba..3189a227a77f 100644
--- a/chart2/qa/extras/chart2export.cxx
+++ b/chart2/qa/extras/chart2export.cxx
@@ -51,6 +51,7 @@ public:
void testSeriesIdxOrder();
void testErrorBarDataRangeODS();
void testChartCrash();
+ void testPieChartRotation();
CPPUNIT_TEST_SUITE(Chart2ExportTest);
CPPUNIT_TEST(test);
@@ -74,6 +75,7 @@ public:
CPPUNIT_TEST(testSeriesIdxOrder);
CPPUNIT_TEST(testErrorBarDataRangeODS);
CPPUNIT_TEST(testChartCrash);
+ CPPUNIT_TEST(testPieChartRotation);
CPPUNIT_TEST_SUITE_END();
protected:
@@ -662,6 +664,15 @@ void Chart2ExportTest::testChartCrash()
CPPUNIT_ASSERT(pXmlDoc);
}
+void Chart2ExportTest::testPieChartRotation()
+{
+ load ("/chart2/qa/extras/data/docx/", "pieChartRotation.docx");
+ xmlDocPtr pXmlDoc = parseExport("word/charts/chart","Office Open XML Text");
+ CPPUNIT_ASSERT(pXmlDoc);
+ assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:view3D/c:rotX", "val", "40");
+ assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:view3D/c:rotY", "val", "30");
+}
+
CPPUNIT_TEST_SUITE_REGISTRATION(Chart2ExportTest);
CPPUNIT_PLUGIN_IMPLEMENT();
diff --git a/chart2/qa/extras/data/docx/pieChartRotation.docx b/chart2/qa/extras/data/docx/pieChartRotation.docx
new file mode 100644
index 000000000000..f76f602374c4
--- /dev/null
+++ b/chart2/qa/extras/data/docx/pieChartRotation.docx
Binary files differ