summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2014-03-12 13:46:26 +0100
committerLuboš Luňák <l.lunak@centrum.cz>2014-03-12 14:02:34 +0100
commitff768da1117d63f7c6e8513ab76927e5cc7ec9a6 (patch)
treede252ffcd98ba72c12e1ac91c82b83eced3288d8
parent10b4da63e3143108ba75891e9e98fdaa2f7953ab (diff)
test for ignoring large twips values (cp#1000043)
Change-Id: I366539b83c7a93a81fd72f3f2355b09c59f7ae58
-rw-r--r--sw/qa/extras/ooxmlimport/data/large-twips.docxbin0 -> 5365 bytes
-rw-r--r--sw/qa/extras/ooxmlimport/ooxmlimport.cxx8
2 files changed, 8 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlimport/data/large-twips.docx b/sw/qa/extras/ooxmlimport/data/large-twips.docx
new file mode 100644
index 000000000000..6e9d82dfab42
--- /dev/null
+++ b/sw/qa/extras/ooxmlimport/data/large-twips.docx
Binary files differ
diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
index e67796ec7ead..bff4e1ee6f74 100644
--- a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
+++ b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
@@ -1963,6 +1963,14 @@ DECLARE_OOXMLIMPORT_TEST(testI124106, "i124106.docx")
CPPUNIT_ASSERT_EQUAL(1, getPages());
}
+DECLARE_OOXMLIMPORT_TEST(testLargeTwips, "large-twips.docx" )
+{
+ // cp#1000043: MSO seems to ignore large twips values, we didn't, which resulted in different
+ // layout of broken documents (text not visible in this specific document).
+ OUString width = parseDump( "/root/page/body/tab/row[1]/cell[1]/txt/infos/bounds", "width" );
+ CPPUNIT_ASSERT( width.toInt32() > 0 );
+}
+
#endif
CPPUNIT_PLUGIN_IMPLEMENT();