From ea3dfb136d28635f874a5a2e3955da7f6e80d8d8 Mon Sep 17 00:00:00 2001 From: Mickael Albertus Date: Sat, 3 Feb 2018 11:20:16 +0100 Subject: epub: fix loading epub thumbnails origin commit: https://github.com/linuxmint/xreader/commit/6ed0ee1 Note: origin commit causes some serious build warnings, ......fixed. --- backend/epub/epub-document.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'backend/epub/epub-document.c') 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; } -- cgit v1.2.1