[Pkg-javascript-commits] [pdf.js] 12/204: Replace magic scale value 0 with UNKNOWN_SCALE
David Prévot
taffit at moszumanska.debian.org
Sat Oct 25 18:50:25 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository pdf.js.
commit 81d5bd86ea30ca37ef34ac7eb1d4db330b158823
Author: Chris Peterson <cpeterson at mozilla.com>
Date: Sat Aug 23 00:14:44 2014 -0700
Replace magic scale value 0 with UNKNOWN_SCALE
---
web/viewer.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/viewer.js b/web/viewer.js
index 0845c18..50a0cc8 100644
--- a/web/viewer.js
+++ b/web/viewer.js
@@ -1213,7 +1213,7 @@ var PDFView = {
setInitialView: function pdfViewSetInitialView(storedHash, scale) {
// Reset the current scale, as otherwise the page's scale might not get
// updated if the zoom level stayed the same.
- this.currentScale = 0;
+ this.currentScale = UNKNOWN_SCALE;
this.currentScaleValue = null;
// When opening a new file (when one is already loaded in the viewer):
// Reset 'currentPageNumber', since otherwise the page's scale will be wrong
--
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