[Libreoffice-commits] core.git: Branch 'distro/collabora/cd-5.3-3.2' - vcl/source
Ashod Nakashian
ashod.nakashian at collabora.co.uk
Mon May 28 12:22:02 UTC 2018
vcl/source/filter/ipdf/pdfread.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 4a3457907546b4cde3adaf0ba6a6d258fe1b54b7
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date: Mon May 28 08:02:06 2018 -0400
vcl: fix pdf rendering regression
Change-Id: I6c2c48c033facb317b4ca7ed2af07348d6386b98
Reviewed-on: https://gerrit.libreoffice.org/54921
Reviewed-by: Jan Holesovsky <kendy at collabora.com>
Tested-by: Jan Holesovsky <kendy at collabora.com>
diff --git a/vcl/source/filter/ipdf/pdfread.cxx b/vcl/source/filter/ipdf/pdfread.cxx
index f61c4062fb37..af8f3ab38c06 100644
--- a/vcl/source/filter/ipdf/pdfread.cxx
+++ b/vcl/source/filter/ipdf/pdfread.cxx
@@ -264,7 +264,9 @@ bool ImportPDF(SvStream& rStream, Graphic& rGraphic,
{
uno::Sequence<sal_Int8> aPdfData;
Bitmap aBitmap;
- bool bRet = ImportPDF(rStream, aBitmap, 0, aPdfData, fResolutionDPI);
+ 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.
More information about the Libreoffice-commits
mailing list