diff options
author | Vasily Melenchuk <Vasily.Melenchuk@cib.de> | 2017-05-15 13:41:14 +0300 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2017-05-18 14:15:27 +0200 |
commit | 5477f7274e4df1210298c0f503a54eabc0f06bfc (patch) | |
tree | a6dff61ec7f6d51dbebb3512bdb3e57f19dc148a /sw/qa/extras/ooxmlexport | |
parent | 63843a97262ccfa38d838a9cbbc3faadba8290a6 (diff) |
tdf#100072 zero height of shape's path was causing geometry errors
DOCX custom geometry shape's path width and height are now used
independently for scaling calculations.
Change-Id: I368dd4dc065b8f122c4eb2911261e45047f03c70
Reviewed-on: https://gerrit.libreoffice.org/37639
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'sw/qa/extras/ooxmlexport')
-rw-r--r-- | sw/qa/extras/ooxmlexport/data/tdf100072.docx | bin | 7034 -> 0 bytes | |||
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlexport9.cxx | 9 |
2 files changed, 0 insertions, 9 deletions
diff --git a/sw/qa/extras/ooxmlexport/data/tdf100072.docx b/sw/qa/extras/ooxmlexport/data/tdf100072.docx Binary files differdeleted file mode 100644 index 02b885b9aafa..000000000000 --- a/sw/qa/extras/ooxmlexport/data/tdf100072.docx +++ /dev/null diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport9.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport9.cxx index ce8a77a02c8c..2aff1fb23ed1 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport9.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport9.cxx @@ -490,15 +490,6 @@ DECLARE_OOXMLEXPORT_TEST(testTdf107033, "tdf107033.docx") CPPUNIT_ASSERT_EQUAL(static_cast<sal_Int32>(25), getProperty<sal_Int32>(xPageStyle, "FootnoteLineRelativeWidth")); } -DECLARE_OOXMLEXPORT_TEST(testTdf100072, "tdf100072.docx") -{ - // Ensure that shape has non-zero height - CPPUNIT_ASSERT(getShape(1)->getSize().Height > 0); - - // Ensure that shape left corner is within page (positive) - CPPUNIT_ASSERT(getShape(1)->getPosition().X > 0); -} - DECLARE_OOXMLEXPORT_TEST(testTdf107889, "tdf107889.docx") { uno::Reference<drawing::XDrawPageSupplier> xDrawPageSupplier(mxComponent, uno::UNO_QUERY); |