sw/qa/core/text/text.cxx | 4 ++++ 1 file changed, 4 insertions(+) New commits: commit 24fcb3d16d28ac78d5ce80e46c2cc8f4300242ca Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Fri Mar 3 12:29:02 2023 +0000 Commit: Michael Stahl <michael.st...@allotropia.de> CommitDate: Mon Mar 6 11:38:07 2023 +0000
don't crash with --disable-pdfium Change-Id: I8a02e9c5367a5fc73674963d31c48a6114e92299 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148177 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.st...@allotropia.de> diff --git a/sw/qa/core/text/text.cxx b/sw/qa/core/text/text.cxx index 9ffae51f175f..0ddc9a0885d8 100644 --- a/sw/qa/core/text/text.cxx +++ b/sw/qa/core/text/text.cxx @@ -681,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();