summaryrefslogtreecommitdiff
path: root/sw/qa
diff options
context:
space:
mode:
authorJustin Luth <justin_luth@sil.org>2016-12-30 17:30:56 +0300
committerMiklos Vajna <vmiklos@collabora.co.uk>2017-01-05 09:54:37 +0000
commit4b12246a6c2285a9d4fe20e665028b6f8a68b018 (patch)
tree0d580b9670a674cb124417e3f3dc8857ee286409 /sw/qa
parent82c9dbe2a015a16e8e3525daab77967a90858f14 (diff)
tdf#49102 - remove list numbering from merged cells
The hidden cells in a vertical merge retained their numbered list properties. It is possible in LO's UI to create a table similar to this by numbering the cells first, and then merging them. So this behaviour also needs to be prevented in a future patch. Change-Id: I0c3ae50aada3fa03e624b1d4212b2776b7559036 Reviewed-on: https://gerrit.libreoffice.org/32512 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Justin Luth <justin_luth@sil.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'sw/qa')
-rwxr-xr-xsw/qa/extras/ww8export/data/tdf49102_mergedCellNumbering.docbin0 -> 17408 bytes
-rw-r--r--sw/qa/extras/ww8export/ww8export2.cxx4
2 files changed, 4 insertions, 0 deletions
diff --git a/sw/qa/extras/ww8export/data/tdf49102_mergedCellNumbering.doc b/sw/qa/extras/ww8export/data/tdf49102_mergedCellNumbering.doc
new file mode 100755
index 000000000000..747136d47daf
--- /dev/null
+++ b/sw/qa/extras/ww8export/data/tdf49102_mergedCellNumbering.doc
Binary files differ
diff --git a/sw/qa/extras/ww8export/ww8export2.cxx b/sw/qa/extras/ww8export/ww8export2.cxx
index f2f5aa7cd991..6f72cd8d0d8e 100644
--- a/sw/qa/extras/ww8export/ww8export2.cxx
+++ b/sw/qa/extras/ww8export/ww8export2.cxx
@@ -33,6 +33,10 @@ DECLARE_WW8EXPORT_TEST(testTdf41542_borderlessPadding, "tdf41542_borderlessPaddi
CPPUNIT_ASSERT_EQUAL( 3, getPages() );
}
+DECLARE_WW8EXPORT_TEST(testTdf49102_mergedCellNumbering, "tdf49102_mergedCellNumbering.doc")
+{
+ CPPUNIT_ASSERT_EQUAL( OUString("2."), parseDump("/root/page/body/tab/row[4]/cell/txt/Special[@nType='POR_NUMBER']", "rText") );
+}
DECLARE_WW8EXPORT_TEST(testTdf89377, "tdf89377_tableWithBreakBeforeParaStyle.doc")
{