Merge pull request #3881 from Snuffleupagus/followup-3854

Fix type mismatch causing wrong scale value in the viewBookmark button
This commit is contained in:
Tim van der Meij 2013-11-02 14:12:07 -07:00
commit 1ce8afc23c

View File

@ -1745,7 +1745,7 @@ function updateViewarea() {
var currentScale = PDFView.currentScale;
var currentScaleValue = PDFView.currentScaleValue;
var normalizedScaleValue = currentScaleValue === currentScale ?
var normalizedScaleValue = parseFloat(currentScaleValue) === currentScale ?
Math.round(currentScale * 10000) / 100 : currentScaleValue;
var pageNumber = firstPage.id;