fix javascript error

This commit is contained in:
Thomas Mueller 2012-06-14 20:55:36 +02:00
parent 12bfc551fb
commit 4cc9bf09be
1 changed files with 4 additions and 0 deletions

View File

@ -1675,6 +1675,10 @@ function preDraw() {
function updateViewarea() {
if (!PDFView.initialized)
return;
var container = document.getElementById('viewer');
if (!container)
return;
var visiblePages = PDFView.getVisiblePages();
var pageToDraw;
for (var i = 0; i < visiblePages.length; i++) {