diff options
author | Caolán McNamara <caolanm@redhat.com> | 2023-01-20 21:17:24 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2023-01-21 10:28:48 +0000 |
commit | 25e1c1ee09a09f3c84088b233112a8ec4545f9c0 (patch) | |
tree | 6f99ff1e9729b60025ca6a619387cd8dd3f50746 /sw/qa/core/text/text.cxx | |
parent | 7c15ffd4e3bf002c3d4edd758bb3af27b1f6a34e (diff) |
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 <caolanm@redhat.com>
Diffstat (limited to 'sw/qa/core/text/text.cxx')
-rw-r--r-- | sw/qa/core/text/text.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
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(); |