Commit 1820802f authored by Sebastian Keller's avatar Sebastian Keller Committed by Carlos Garcia Campos

thumbnailer: Use correct maximum size for thumbnail images

https://bugzilla.gnome.org/show_bug.cgi?id=740877
parent fa73b3b9
......@@ -177,7 +177,7 @@ evince_thumbnail_pngenc_get (EvDocument *document, const char *thumbnail, int si
ev_document_get_page_size (document, 0, &width, &height);
rc = ev_render_context_new (page, 0, size / width);
rc = ev_render_context_new (page, 0, size / MAX (height, width));
pixbuf = ev_document_get_thumbnail (document, rc);
g_object_unref (rc);
g_object_unref (page);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment