diff options
author | Mickael Albertus <[email protected]> | 2018-02-03 11:20:16 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-03-16 17:51:25 +0100 |
commit | ea3dfb136d28635f874a5a2e3955da7f6e80d8d8 (patch) | |
tree | 571f8dd8cc37d61bb27ec57f2e98bcce8a6c12ca /backend/epub/epub-document.c | |
parent | e79d2665e8a4c80d7650e96906545579cb1bf930 (diff) | |
download | atril-ea3dfb136d28635f874a5a2e3955da7f6e80d8d8.tar.bz2 atril-ea3dfb136d28635f874a5a2e3955da7f6e80d8d8.tar.xz |
epub: fix loading epub thumbnails
origin commit:
https://github.com/linuxmint/xreader/commit/6ed0ee1
Note: origin commit causes some serious build warnings,
......fixed.
Diffstat (limited to 'backend/epub/epub-document.c')
-rw-r--r-- | backend/epub/epub-document.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/backend/epub/epub-document.c b/backend/epub/epub-document.c index 1fb375a3..fe483a68 100644 --- a/backend/epub/epub-document.c +++ b/backend/epub/epub-document.c @@ -124,9 +124,10 @@ epub_document_thumbnails_get_thumbnail (EvDocumentThumbnails *document, cairo_surface_t *webpage; GdkPixbuf *thumbnailpix = NULL ; gint width,height; - epub_document_thumbnails_get_dimensions(document,rc,&width,&height); - webpage = ev_document_misc_surface_rotate_and_scale(rc->page->backend_page,width,height,0); - thumbnailpix = ev_document_misc_pixbuf_from_surface(webpage); + epub_document_thumbnails_get_dimensions (document, rc, &width, &height); + webpage = ev_document_misc_surface_rotate_and_scale (rc->page->backend_page, + width, height, 0); + thumbnailpix = ev_document_misc_pixbuf_from_surface (webpage); return thumbnailpix; } |