diff options
author | Mickael Albertus <[email protected]> | 2018-02-03 11:20:16 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-03-16 18:04:56 +0100 |
commit | bd799f45f16f30284466dd013abecbe35c9d0695 (patch) | |
tree | b24b33272cef1b6a487f398ff5162f34d16604e5 /backend | |
parent | 8770730b64694e1729a1d45930b877175de09cb4 (diff) | |
download | atril-bd799f45f16f30284466dd013abecbe35c9d0695.tar.bz2 atril-bd799f45f16f30284466dd013abecbe35c9d0695.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')
-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; } |