sw/qa/core/text/text.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) New commits: commit 25e1c1ee09a09f3c84088b233112a8ec4545f9c0 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Fri Jan 20 21:17:24 2023 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Sat Jan 21 10:28:48 2023 +0000
don't crash with --disable-pdfium Change-Id: If754b2323f877379523115d6dca73c97ae539a76 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145917 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/sw/qa/core/text/text.cxx b/sw/qa/core/text/text.cxx index cb1eba81d97b..0ddc9a0885d8 100644 --- a/sw/qa/core/text/text.cxx +++ b/sw/qa/core/text/text.cxx @@ -634,6 +634,10 @@ CPPUNIT_TEST_FIXTURE(SwCoreTextTest, testTdf43100_CursorMoveToSpacesOverMargin) CPPUNIT_TEST_FIXTURE(SwCoreTextTest, testContentControlPDF) { + std::shared_ptr<vcl::pdf::PDFium> pPDFium = vcl::pdf::PDFiumLibrary::get(); + if (!pPDFium) + return; + // Given a file with a content control: createSwDoc(); SwDoc* pDoc = getSwDoc(); @@ -677,6 +681,10 @@ CPPUNIT_TEST_FIXTURE(SwCoreTextTest, testContentControlPDF) CPPUNIT_TEST_FIXTURE(SwCoreTextTest, testContentControlPlaceholderPDF) { + std::shared_ptr<vcl::pdf::PDFium> pPDFium = vcl::pdf::PDFiumLibrary::get(); + if (!pPDFium) + return; + // Given a file with a content control, in placeholder mode: createSwDoc(); SwDoc* pDoc = getSwDoc();