[Pkg-javascript-commits] [pdf.js] 93/109: Prevent `setImage` from failing to display small thumbnails, by adding a missing `canvas` to `image` conversion
David Prévot
taffit at moszumanska.debian.org
Fri Sep 25 03:04:22 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository pdf.js.
commit 555c7925a0da9606f70c8f97c23d041d686e53ae
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date: Fri Sep 11 13:18:35 2015 +0200
Prevent `setImage` from failing to display small thumbnails, by adding a missing `canvas` to `image` conversion
*Follow-up to PR 6299.*
---
web/pdf_thumbnail_view.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/web/pdf_thumbnail_view.js b/web/pdf_thumbnail_view.js
index 71488c1..71f52ae 100644
--- a/web/pdf_thumbnail_view.js
+++ b/web/pdf_thumbnail_view.js
@@ -315,6 +315,7 @@ var PDFThumbnailView = (function PDFThumbnailViewClosure() {
if (img.width <= 2 * canvas.width) {
ctx.drawImage(img, 0, 0, img.width, img.height,
0, 0, canvas.width, canvas.height);
+ this._convertCanvasToImage();
return;
}
// drawImage does an awful job of rescaling the image, doing it gradually.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git
More information about the Pkg-javascript-commits
mailing list