Commit da24829e authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

djvu: Fix garbage on empty pages at "high" zoom levels

BUGS: 419962
parent 1cea2686
......@@ -981,15 +981,12 @@ QImage KDjVu::image( int page, int width, int height, int rotation )
int parts = xparts * yparts;
for ( int i = 0; i < parts; ++i )
{
int row = i % xparts;
int col = i / xparts;
const int row = i % xparts;
const int col = i / xparts;
int tmpres = 0;
QImage tempp = d->generateImageTile( djvupage, tmpres,
const QImage tempp = d->generateImageTile( djvupage, tmpres,
width, row, xdelta, height, col, ydelta );
if ( tmpres )
{
p.drawImage( row * xdelta, col * ydelta, tempp );
}
p.drawImage( row * xdelta, col * ydelta, tempp );
res = qMin( tmpres, res );
}
p.end();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment