summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2023-03-03 12:29:02 +0000
committerMichael Stahl <michael.stahl@allotropia.de>2023-03-06 11:38:07 +0000
commit24fcb3d16d28ac78d5ce80e46c2cc8f4300242ca (patch)
treef3763d553a49ced012bd56f1a74cfb24a7f399c9 /sw
parent7742a400da3e9c8b939542f3b949681596e5547f (diff)
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.stahl@allotropia.de>
Diffstat (limited to 'sw')
-rw-r--r--sw/qa/core/text/text.cxx4
1 files changed, 4 insertions, 0 deletions
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();