diff options
author | Mickael Albertus <[email protected]> | 2018-02-03 11:20:16 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-03-22 13:30:20 +0100 |
commit | 9af37879b1d4c434d02ed0b7c7eb36f1128ace02 (patch) | |
tree | 7ddc1ca43802aa927de757c47dc75cf3c1292f89 /backend | |
parent | 83fa307fb17a629cb1fa96bf013da2588e40c9fa (diff) | |
download | atril-9af37879b1d4c434d02ed0b7c7eb36f1128ace02.tar.bz2 atril-9af37879b1d4c434d02ed0b7c7eb36f1128ace02.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; } |