summaryrefslogtreecommitdiff
path: root/vcl/source/filter
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-09-07 10:52:53 +0200
committerStephan Bergmann <sbergman@redhat.com>2020-09-07 12:19:34 +0200
commit49da32af187f28166fd62205d797bf9aa9ec2ace (patch)
treef054a71a602639d47118ba7e553137a2022c25cf /vcl/source/filter
parent101fc9fea871c71813c541bd790962d0c06e5753 (diff)
Confine findAnnotations to HAVE_FEATURE_PDFIUM
Otherwise e.g. Android builds would fail with > vcl/source/filter/ipdf/pdfread.cxx:231:77: error: no member named 'PDFiumPage' in namespace 'vcl::pdf' > std::vector<PDFGraphicAnnotation> findAnnotations(std::unique_ptr<vcl::pdf::PDFiumPage>& pPage, > ~~~~~~~~~~^ etc. Regression apparently introduced with 6d275917944c274a22620c2c19880eb8e94f2558 "extract PDF import for annotations to a separate function". Change-Id: I364d8d3f30c7eeaa933bfe6aebaf4cad35c20d2b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102153 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl/source/filter')
-rw-r--r--vcl/source/filter/ipdf/pdfread.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/source/filter/ipdf/pdfread.cxx b/vcl/source/filter/ipdf/pdfread.cxx
index 1dde06491ea1..d89283e902ac 100644
--- a/vcl/source/filter/ipdf/pdfread.cxx
+++ b/vcl/source/filter/ipdf/pdfread.cxx
@@ -226,6 +226,7 @@ bool ImportPDF(SvStream& rStream, Graphic& rGraphic)
return true;
}
+#if HAVE_FEATURE_PDFIUM
namespace
{
std::vector<PDFGraphicAnnotation> findAnnotations(std::unique_ptr<vcl::pdf::PDFiumPage>& pPage,
@@ -275,6 +276,7 @@ std::vector<PDFGraphicAnnotation> findAnnotations(std::unique_ptr<vcl::pdf::PDFi
}
} // end anonymous namespace
+#endif
size_t ImportPDFUnloaded(const OUString& rURL, std::vector<PDFGraphicResult>& rGraphics)
{