summaryrefslogtreecommitdiff
path: root/sw/qa/core/text/text.cxx
diff options
context:
space:
mode:
authorVojtěch Doležal <dolezvo1@cvut.cz>2023-12-09 11:03:05 +0100
committerMike Kaganski <mike.kaganski@collabora.com>2023-12-13 15:25:11 +0100
commit94d18ea557a03c1f2d450454908787f7d3af8a6e (patch)
tree9662dc09a0937ecc0cbf3fa96ad8b33fc2312575 /sw/qa/core/text/text.cxx
parent6b788f8baf4c6ba42dc6c0f580fbf9480d8c60d3 (diff)
tdf#158505 - Fix PDF export when bibliography is last paragraph
Change-Id: Iadafff97ba19d5c24be768238bddb4d684edde1c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160509 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sw/qa/core/text/text.cxx')
-rw-r--r--sw/qa/core/text/text.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/sw/qa/core/text/text.cxx b/sw/qa/core/text/text.cxx
index 7340a151d1f4..666e6d29f250 100644
--- a/sw/qa/core/text/text.cxx
+++ b/sw/qa/core/text/text.cxx
@@ -103,6 +103,18 @@ CPPUNIT_TEST_FIXTURE(SwCoreTextTest, testSemiTransparentText)
assertXPath(pXmlDoc, "//floattransparent"_ostr);
}
+CPPUNIT_TEST_FIXTURE(SwCoreTextTest, testLastBibliographyPdfExport)
+{
+ // Given a document with a bibliography as the last paragraph:
+ createSwDoc("tdf158505.odt");
+
+ // It should be possible to export to PDF:
+ save("writer_pdf_Export");
+
+ // Without the accompanying fix, the export to PDF would get stuck in an infinite loop
+ CPPUNIT_ASSERT(true);
+}
+
CPPUNIT_TEST_FIXTURE(SwCoreTextTest, testBibliographyUrlPdfExport)
{
// Given a document with a bibliography entry field: