Fix thumbnail scaling regression for files with different page sizes (issue 5637)

This commit is contained in:
Jonas Jenwald 2015-01-13 01:03:54 +01:00
parent 95fcbc2325
commit c466a9e034

View File

@ -203,7 +203,7 @@ var ThumbnailView = function thumbnailView(container, id, defaultViewport,
if (this.hasImage || !img) { if (this.hasImage || !img) {
return; return;
} }
if (this.pdfPage) { if (!this.pdfPage) {
this.setPdfPage(pageView.pdfPage); this.setPdfPage(pageView.pdfPage);
} }
this.renderingState = RenderingStates.FINISHED; this.renderingState = RenderingStates.FINISHED;