diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-09-26 12:45:12 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-09-26 13:03:53 +0200 |
commit | dd2b8472a97d1ab01111f9969b046a1c2ec5586a (patch) | |
tree | 36b681295e9604073d7b5875aaa6b2ad623d2ec0 /sw | |
parent | 4652700776666e385946c47235363c1120846d5d (diff) |
DOCX drawingML import: fix handling of rotation in case of horizontal flip
Change-Id: I95f74c3d3222a4d713c8d71bcd3263ecb16dba54
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/ooxmlexport/data/rot90-fliph.docx | bin | 0 -> 15683 bytes | |||
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlexport.cxx | 11 |
2 files changed, 11 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/data/rot90-fliph.docx b/sw/qa/extras/ooxmlexport/data/rot90-fliph.docx Binary files differnew file mode 100644 index 000000000000..c2a916d8093b --- /dev/null +++ b/sw/qa/extras/ooxmlexport/data/rot90-fliph.docx diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx index be44a0723086..43ea66977dc1 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx @@ -304,6 +304,17 @@ DECLARE_OOXMLEXPORT_TEST(testDrawingmlFlipv, "drawingml-flipv.docx") } } +DECLARE_OOXMLEXPORT_TEST(testRot90Fliph, "rot90-fliph.docx") +{ + // The problem was that a shape rotation of 90° got turned into 270° after roundtrip. + if (xmlDocPtr pXmlDoc = parseExport("word/document.xml")) + { + assertXPath(pXmlDoc, "//a:xfrm", "flipH", "1"); + // This was 16200000 (270 * 60000). + assertXPath(pXmlDoc, "//a:xfrm", "rot", "5400000"); + } +} + CPPUNIT_PLUGIN_IMPLEMENT(); /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |