diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2018-06-06 00:51:10 -0400 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2018-06-07 10:45:35 +0200 |
commit | b10bc896bdceeb3f24269c485272fde2e669922f (patch) | |
tree | bfebeb8da6a98b0bca0bb93445feec45111404a4 /vcl/source | |
parent | 17b95a2cb577731687e87126f22e6e64784e782c (diff) |
vcl: svx: misc improvements to pdfium importing
Change-Id: I58f2fd973a731b148f40b37139cd74bac097a7d2
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/filter/ipdf/pdfread.cxx | 2 | ||||
-rw-r--r-- | vcl/source/gdi/graph.cxx | 2 | ||||
-rw-r--r-- | vcl/source/gdi/impgraph.cxx | 3 |
3 files changed, 4 insertions, 3 deletions
diff --git a/vcl/source/filter/ipdf/pdfread.cxx b/vcl/source/filter/ipdf/pdfread.cxx index 9ee9e69011b3..3101056824ad 100644 --- a/vcl/source/filter/ipdf/pdfread.cxx +++ b/vcl/source/filter/ipdf/pdfread.cxx @@ -60,7 +60,7 @@ inline double pointToPixel(const double fPoint, const double fResolutionDPI) /// Does PDF to bitmap conversion using pdfium. size_t generatePreview(SvStream& rStream, std::vector<Bitmap>& rBitmaps, sal_uInt64 nPos, - sal_uInt64 nSize, const size_t nFirstPage = 0, int nPages = 1, + sal_uInt64 nSize, const size_t nFirstPage, int nPages, const double fResolutionDPI = 96.) { FPDF_LIBRARY_CONFIG aConfig; diff --git a/vcl/source/gdi/graph.cxx b/vcl/source/gdi/graph.cxx index adc7d771c94d..52e4e9e74ae8 100644 --- a/vcl/source/gdi/graph.cxx +++ b/vcl/source/gdi/graph.cxx @@ -563,7 +563,7 @@ void Graphic::setPdfData(const std::shared_ptr<uno::Sequence<sal_Int8>>& rPdfDat mxImpGraphic->setPdfData(rPdfData); } -std::shared_ptr<uno::Sequence<sal_Int8>> Graphic::getPdfData() const +const std::shared_ptr<uno::Sequence<sal_Int8>>& Graphic::getPdfData() const { return mxImpGraphic->getPdfData(); } diff --git a/vcl/source/gdi/impgraph.cxx b/vcl/source/gdi/impgraph.cxx index 32c8dfee44a8..87a7bd64a398 100644 --- a/vcl/source/gdi/impgraph.cxx +++ b/vcl/source/gdi/impgraph.cxx @@ -242,7 +242,8 @@ ImpGraphic::ImpGraphic(GraphicExternalLink const & rGraphicExternalLink) : mbDummyContext ( false ), maGraphicExternalLink(rGraphicExternalLink), maLastUsed (std::chrono::high_resolution_clock::now()), - mbPrepared (false) + mbPrepared (false), + mnPageNumber(-1) { } |