diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-01-05 09:08:21 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-01-08 20:27:37 +0000 |
commit | 9be39a75053be54214efd1fc4c2811913659c30e (patch) | |
tree | 5a34033c91d600575a5b0bc420e69953723fd3b7 /sw | |
parent | 19131619fdcb44267b1f12722e5c7154990dc303 (diff) |
tdf#96674 drawingML import: fix handling of zero width/height lines
(cherry picked from commit 627c2469843c9461b665c4571f1214aca7fc36a4)
Change-Id: If3d9f6272031e08ab228cfa58963d60ceede2498
Reviewed-on: https://gerrit.libreoffice.org/21115
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/ooxmlimport/data/tdf96674.docx | bin | 0 -> 14947 bytes | |||
-rw-r--r-- | sw/qa/extras/ooxmlimport/ooxmlimport.cxx | 10 |
2 files changed, 10 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlimport/data/tdf96674.docx b/sw/qa/extras/ooxmlimport/data/tdf96674.docx Binary files differnew file mode 100644 index 000000000000..752479c2ea16 --- /dev/null +++ b/sw/qa/extras/ooxmlimport/data/tdf96674.docx diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx index 40949b2edbc6..cfdbd7b58919 100644 --- a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx +++ b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx @@ -3002,6 +3002,16 @@ DECLARE_OOXMLIMPORT_TEST(testTdf94043, "tdf94043.docx") CPPUNIT_ASSERT_EQUAL(static_cast<sal_Int32>(2), getProperty<sal_Int32>(xTextColumns, "SeparatorLineWidth")); } +DECLARE_OOXMLIMPORT_TEST(testTdf96674, "tdf96674.docx") +{ + uno::Reference<drawing::XShape> xShape(getShape(1), uno::UNO_QUERY); + CPPUNIT_ASSERT(xShape.is()); + awt::Size aActualSize(xShape->getSize()); + // This was 3493: the vertical line was horizontal. + CPPUNIT_ASSERT_EQUAL(static_cast<sal_Int32>(0), aActualSize.Width); + CPPUNIT_ASSERT(aActualSize.Height > 0); +} + CPPUNIT_PLUGIN_IMPLEMENT(); /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |