summaryrefslogtreecommitdiff
path: root/sw/qa/extras
diff options
context:
space:
mode:
Diffstat (limited to 'sw/qa/extras')
-rw-r--r--sw/qa/extras/odfimport/data/tdf75221.odtbin0 -> 9131 bytes
-rw-r--r--sw/qa/extras/odfimport/odfimport.cxx9
2 files changed, 9 insertions, 0 deletions
diff --git a/sw/qa/extras/odfimport/data/tdf75221.odt b/sw/qa/extras/odfimport/data/tdf75221.odt
new file mode 100644
index 000000000000..6ef117c24e29
--- /dev/null
+++ b/sw/qa/extras/odfimport/data/tdf75221.odt
Binary files differ
diff --git a/sw/qa/extras/odfimport/odfimport.cxx b/sw/qa/extras/odfimport/odfimport.cxx
index 02fb8b1ba361..ceb55723e01a 100644
--- a/sw/qa/extras/odfimport/odfimport.cxx
+++ b/sw/qa/extras/odfimport/odfimport.cxx
@@ -658,5 +658,14 @@ DECLARE_ODFIMPORT_TEST(testFdo47267, "fdo47267-3.odt")
// This was a Style Families getByName() crash
}
+DECLARE_ODFIMPORT_TEST(testTdf75221, "tdf75221.odt")
+{
+ // When "Don't add space between paragraphs of the same style" setting set,
+ // spacing between same-style paragraphs must be equal to their line spacing.
+ // It used to be 0.
+ OUString top = parseDump("/root/page/body/txt[2]/infos/prtBounds", "top");
+ CPPUNIT_ASSERT(top.toInt32() > 0);
+}
+
CPPUNIT_PLUGIN_IMPLEMENT();
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */