Fix type mismatch causing wrong scale value in the viewBookmark button

This commit is contained in:
Jonas Jenwald 2013-11-02 21:54:54 +01:00
parent 867c667690
commit 1c259ce806

View File

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