summaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorMickael Albertus <[email protected]>2018-02-03 11:20:16 +0100
committerraveit65 <[email protected]>2018-03-22 13:30:20 +0100
commit9af37879b1d4c434d02ed0b7c7eb36f1128ace02 (patch)
tree7ddc1ca43802aa927de757c47dc75cf3c1292f89 /backend
parent83fa307fb17a629cb1fa96bf013da2588e40c9fa (diff)
downloadatril-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.c7
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;
}