summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <[email protected]>2015-07-10 00:05:33 +0200
committerAlbert Astals Cid <[email protected]>2015-07-10 00:05:33 +0200
commit8bbe773b235f10a0f314653e9b875d548d1a52b9 (patch)
tree6e9a12ea19956c5bbd533cf6c039ac796c783ecb
parentb088001a7cdd52351e8a08724c414a6d71819de0 (diff)
Increase the number of pixels we're going to let render even if we don't have the pixmap
Also always allow for downscaling
-rw-r--r--ui/pagepainter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/pagepainter.cpp b/ui/pagepainter.cpp
index 7399d4a..6eed5b6 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() )