Merge pull request #4697 from Snuffleupagus/issue-4696

Fix the display of the indeterminate progress bar when the loaded percentage is NaN (issue 4696)
This commit is contained in:
Yury Delendik 2014-04-27 17:20:46 -05:00
commit 2ff1d433b9

View File

@ -887,7 +887,7 @@ var PDFView = {
// that we discard some of the loaded data. This can cause the loading // that we discard some of the loaded data. This can cause the loading
// bar to move backwards. So prevent this by only updating the bar if it // bar to move backwards. So prevent this by only updating the bar if it
// increases. // increases.
if (percent > PDFView.loadingBar.percent) { if (percent > PDFView.loadingBar.percent || isNaN(percent)) {
PDFView.loadingBar.percent = percent; PDFView.loadingBar.percent = percent;
} }
}, },