Commit 0419812a authored by Albert Astals Cid's avatar Albert Astals Cid

djvu: Initialize to white if rendering fails

It's what ddjvu does, and also it's not nice to return an uninitialzed image back to the user

BUGS: 377202
parent 7da5adce
......@@ -494,6 +494,10 @@ QImage KDjVu::Private::generateImageTile( ddjvu_page_t *djvupage, int& res,
ddjvu_page_get_width( djvupage );
res = ddjvu_page_render( djvupage, DDJVU_RENDER_COLOR,
&pagerect, &renderrect, m_format, res_img.bytesPerLine(), (char *)res_img.bits() );
if (!res)
qDebug() << "rendering result:" << res;
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