Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit 34f6c62c authored by Jakub Stachowski's avatar Jakub Stachowski

Fixed thumbnail generation for some files

svn path=/trunk/playground/graphics/okular/mobipocket/; revision=882600
parent 4361d56b
......@@ -3,4 +3,3 @@
- anchors (a filepos=)
- decryption for DRMed files (may be impossible and/or illegal)
- strigi analyzer
- thumbnail generator does not for some files (DRMed i think)
......@@ -272,7 +272,13 @@ bool Document::hasDRM() const
QImage Document::thumbnail() const
if (!d->firstImageRecord) d->findFirstImage();
return d->getImageFromRecord(d->thumbnailIndex+d->firstImageRecord);
QImage img=d->getImageFromRecord(d->thumbnailIndex+d->firstImageRecord);
// does not work, try first image
if (img.isNull() && d->thumbnailIndex) {
return img;
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