From 8bbe773b235f10a0f314653e9b875d548d1a52b9 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Fri, 10 Jul 2015 00:05:33 +0200 Subject: [PATCH] Increase the number of pixels we're going to let render even if we don't have the pixmap Also always allow for downscaling --- ui/pagepainter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/pagepainter.cpp b/ui/pagepainter.cpp index 7399d4a47..6eed5b6e2 100644 --- a/ui/pagepainter.cpp +++ b/ui/pagepainter.cpp @@ -101,7 +101,7 @@ void PagePainter::paintCroppedPageOnPainter( QPainter * destPainter, const Okula double pixmapRescaleRatio = pixmap ? scaledWidth / (double)pixmap->width() : -1; long pixmapPixels = pixmap ? (long)pixmap->width() * (long)pixmap->height() : 0; if ( !pixmap || pixmapRescaleRatio > 20.0 || pixmapRescaleRatio < 0.25 || - (scaledWidth != pixmap->width() && pixmapPixels > 6000000L) ) + (scaledWidth > pixmap->width() && pixmapPixels > 60000000L) ) { // draw something on the blank page: the okular icon or a cross (as a fallback) if ( !busyPixmap->isNull() )