Replace magic scale value 0 with UNKNOWN_SCALE

This commit is contained in:
Chris Peterson 2014-08-23 00:14:44 -07:00
parent 50a4510ab7
commit 81d5bd86ea

View File

@ -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