summaryrefslogtreecommitdiff
path: root/sw/qa/extras
diff options
context:
space:
mode:
authorLászló Németh <nemeth@numbertext.org>2019-12-03 11:45:27 +0100
committerLászló Németh <nemeth@numbertext.org>2019-12-04 07:12:51 +0100
commit5ac21d46f25023e4c8440aa45c6d923eaa4a925b (patch)
tree9a1c79e61f9956f43b6a5416ad5555e02f647d1b /sw/qa/extras
parent90417749fac6519eb0dde7f24736efc2d1bdf5a1 (diff)
tdf#117982 Writer: fix invisible cell content due to spacing
If the cell content with its bottom paragraph spacing is greater than the fix cell height, the content was invisible. Change-Id: I5922941dc0941950912a7ea2cec0aedf1079544c Reviewed-on: https://gerrit.libreoffice.org/84010 Tested-by: Jenkins Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sw/qa/extras')
-rw-r--r--sw/qa/extras/layout/data/tdf117982.docxbin0 -> 9700 bytes
-rw-r--r--sw/qa/extras/layout/layout.cxx12
2 files changed, 12 insertions, 0 deletions
diff --git a/sw/qa/extras/layout/data/tdf117982.docx b/sw/qa/extras/layout/data/tdf117982.docx
new file mode 100644
index 000000000000..f5886215b93b
--- /dev/null
+++ b/sw/qa/extras/layout/data/tdf117982.docx
Binary files differ
diff --git a/sw/qa/extras/layout/layout.cxx b/sw/qa/extras/layout/layout.cxx
index f02a69ae042e..8524a4e0e033 100644
--- a/sw/qa/extras/layout/layout.cxx
+++ b/sw/qa/extras/layout/layout.cxx
@@ -3543,6 +3543,18 @@ CPPUNIT_TEST_FIXTURE(SwLayoutWriter, testTdf105481)
CPPUNIT_ASSERT_LESSEQUAL(nTxtBottom, nFormula2Bottom);
}
+CPPUNIT_TEST_FIXTURE(SwLayoutWriter, testTdf117982)
+{
+ SwDoc* pDocument = createDoc("tdf117982.docx");
+ SwDocShell* pShell = pDocument->GetDocShell();
+ std::shared_ptr<GDIMetaFile> xMetaFile = pShell->GetPreviewMetaFile();
+ MetafileXmlDump dumper;
+ xmlDocPtr pXmlDoc = dumpAndParse(dumper, *xMetaFile);
+ assertXPathContent(pXmlDoc, "/metafile/push[1]/push[1]/push[1]/textarray[1]/text", "FOO AAA");
+ //The first cell must be "FOO AAA". If not, this means the first cell content not visible in
+ //the source document.
+}
+
CPPUNIT_PLUGIN_IMPLEMENT();
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */