fix --disable-pdfimport build
Change-Id: I7a7719c07375d766123ec0054ae1c40a6f5820bf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198965
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
(cherry picked from commit 5ef1e41cf49cd1c16db7fa74e318ec4a61fb187d)
Reviewed-on: https://gerrit.collaboraoffice.com/c/core/+/361
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Noel Grandin <noel.grandin@collabora.com>
diff --git a/sw/qa/extras/uiwriter/uiwriter9.cxx b/sw/qa/extras/uiwriter/uiwriter9.cxx
index 279262d..f3b3299 100644
--- a/sw/qa/extras/uiwriter/uiwriter9.cxx
+++ b/sw/qa/extras/uiwriter/uiwriter9.cxx
@@ -7,6 +7,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
+#include <config_poppler.h>
#include <swmodeltestbase.hxx>
#include <officecfg/Office/Common.hxx>
#include <officecfg/Office/Writer.hxx>
@@ -761,6 +762,7 @@
//CPPUNIT_ASSERT(!pWrtShell->GetCurField(true));
}
+#if ENABLE_PDFIMPORT
CPPUNIT_TEST_FIXTURE(SwUiWriterTest9, testPDFExportCrash)
{
createSwDoc("section-table-section.fodt");
@@ -775,6 +777,7 @@
// Without the fix in place, this test would have crashed here
dispatchCommand(mxComponent, u".uno:ExportToPDF"_ustr, aDescriptor);
}
+#endif
CPPUNIT_TEST_FIXTURE(SwUiWriterTest9, testTdf159049)
{