Skip to content

Commit

Permalink
thumbnailer: Use correct maximum size for thumbnail images
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Keller authored and Carlos Garcia Campos committed Nov 29, 2014
1 parent f90b2e6 commit 3f28c8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thumbnailer/evince-thumbnailer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3f28c8d

Please sign in to comment.