From c466a9e0344e751e458ac08c5ee8d89aeec287bc Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Tue, 13 Jan 2015 01:03:54 +0100 Subject: [PATCH] Fix thumbnail scaling regression for files with different page sizes (issue 5637) --- web/thumbnail_view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/thumbnail_view.js b/web/thumbnail_view.js index e07ab3ab9..3b4120a22 100644 --- a/web/thumbnail_view.js +++ b/web/thumbnail_view.js @@ -203,7 +203,7 @@ var ThumbnailView = function thumbnailView(container, id, defaultViewport, if (this.hasImage || !img) { return; } - if (this.pdfPage) { + if (!this.pdfPage) { this.setPdfPage(pageView.pdfPage); } this.renderingState = RenderingStates.FINISHED;