Merge pull request #5638 from Snuffleupagus/issue-5637-1

Fix thumbnail scaling regression for files with different page sizes (issue 5637)
This commit is contained in:
Tim van der Meij 2015-01-13 01:14:05 +01:00
commit 5bf87c66ff

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;