summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2018-05-28 08:02:06 -0400
committerAshod Nakashian <ashod.nakashian@collabora.co.uk>2018-06-06 00:53:56 -0400
commit5c18e71776c56a034cd8fea677c29997a0c34400 (patch)
tree3faa263684c141cadeb12e534029eda4d34f5ec4
parentc67128ac01c531fc047c3cf069102a582ace292d (diff)
vcl: fix pdf rendering regression
Change-Id: I6c2c48c033facb317b4ca7ed2af07348d6386b98 Reviewed-on: https://gerrit.libreoffice.org/54921 Reviewed-by: Jan Holesovsky <kendy@collabora.com> Tested-by: Jan Holesovsky <kendy@collabora.com>
-rw-r--r--vcl/source/filter/ipdf/pdfread.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/source/filter/ipdf/pdfread.cxx b/vcl/source/filter/ipdf/pdfread.cxx
index fc6ea985193a..4ac2503ec665 100644
--- a/vcl/source/filter/ipdf/pdfread.cxx
+++ b/vcl/source/filter/ipdf/pdfread.cxx
@@ -251,7 +251,8 @@ bool ImportPDF(SvStream& rStream, Graphic& rGraphic, const double fResolutionDPI
{
uno::Sequence<sal_Int8> aPdfData;
Bitmap aBitmap;
- const bool bRet = ImportPDF(rStream, aBitmap, 0, aPdfData, fResolutionDPI);
+ const bool bRet = ImportPDF(rStream, aBitmap, 0, aPdfData, STREAM_SEEK_TO_BEGIN,
+ STREAM_SEEK_TO_END, fResolutionDPI);
rGraphic = aBitmap;
rGraphic.setPdfData(std::make_shared<css::uno::Sequence<sal_Int8>>(aPdfData));
rGraphic.setPageNumber(0); // We currently import only the first page.