Increase the number of pixels we're going to let render even if we don't have the pixmap

Also always allow for downscaling
remotes/origin/Applications/15.08
Albert Astals Cid 11 years ago
parent b088001a7c
commit 8bbe773b23
  1. 2
      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() )

Loading…
Cancel
Save