vcl/source/filter/ipdf/pdfread.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 3862929efcc5e9275d878bbe64cb034796e4012d Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Mon Jan 20 13:05:39 2020 +0100 Commit: Tomaž Vajngerl <qui...@gmail.com> CommitDate: Sat Jun 6 19:23:36 2020 +0200 Use properly typed var to iterate over FPDF_GetPageCount ...which, according to <https://pdfium.patagames.com/help/html/ M_Patagames_Pdf_Pdfium_FPDF_GetPageCount.htm>, returns int. The code had oddly been like this since it was introduced with 9194f019afb0599d5e72476786fabfa996e07f20 "pdfium: Import PDF with unloaded images." Change-Id: If8aad3c0bfbecdedea9511cff17e125fb1938f90 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87067 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95617 Tested-by: Tomaž Vajngerl <qui...@gmail.com> Reviewed-by: Tomaž Vajngerl <qui...@gmail.com> diff --git a/vcl/source/filter/ipdf/pdfread.cxx b/vcl/source/filter/ipdf/pdfread.cxx index c5c542a35aad..1d253d023424 100644 --- a/vcl/source/filter/ipdf/pdfread.cxx +++ b/vcl/source/filter/ipdf/pdfread.cxx @@ -325,7 +325,7 @@ size_t ImportPDFUnloaded(const OUString& rURL, std::vector<std::pair<Graphic, Si // dummy Bitmap Bitmap aBitmap(Size(1, 1), 24); - for (size_t nPageIndex = 0; nPageIndex < static_cast<size_t>(nPageCount); ++nPageIndex) + for (int nPageIndex = 0; nPageIndex < nPageCount; ++nPageIndex) { double fPageWidth = 0; double fPageHeight = 0; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits