diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2014-03-26 17:31:03 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2014-03-26 17:36:49 +0100 |
commit | 0d1abac3a3131a9419cedb4385edf6ab8ccb58de (patch) | |
tree | 2f2c65c4d835a7ff6ae5b6aa2f613c888f8b3ae7 /sw | |
parent | 1e47614cdb84b018a22a334dad0cdd9f0f53892c (diff) |
test for ignoring negative cell margin values
Change-Id: I7e56762a7097dd7369f9d8d71b499888ee5c081d
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/ooxmlimport/data/negative_table_cell_twips.docx | bin | 0 -> 5902 bytes | |||
-rw-r--r-- | sw/qa/extras/ooxmlimport/ooxmlimport.cxx | 8 |
2 files changed, 8 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlimport/data/negative_table_cell_twips.docx b/sw/qa/extras/ooxmlimport/data/negative_table_cell_twips.docx Binary files differnew file mode 100644 index 000000000000..3ae73db5c846 --- /dev/null +++ b/sw/qa/extras/ooxmlimport/data/negative_table_cell_twips.docx diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx index b86d26d2a9a0..da5472d68560 100644 --- a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx +++ b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx @@ -1981,6 +1981,14 @@ DECLARE_OOXMLIMPORT_TEST(testLargeTwips, "large-twips.docx" ) CPPUNIT_ASSERT( width.toInt32() > 0 ); } +DECLARE_OOXMLIMPORT_TEST(testNegativeCellMarginTwips, "negative-cell-margin-twips.docx" ) +{ + // Sligtly related to cp#1000043, the twips value was negative, which wrapped around somewhere, + // while MSO seems to ignore that as well. + OUString width = parseDump( "/root/page/body/tab/row[1]/cell[1]/txt/infos/bounds", "width" ); + CPPUNIT_ASSERT( width.toInt32() > 0 ); +} + DECLARE_OOXMLIMPORT_TEST(testFdo38414, "fdo38414.docx" ) { // The cells in the last (4th) column were merged properly and so the result didn't have the same height. |