Commit e928d302 authored by Cosimo Cecchi's avatar Cosimo Cecchi

nautilus-file: fix regression with small thumbnails images

Commit 1968379a changed the code here to
use the new names for icon sizes, but not consistently.

https://bugzilla.gnome.org/show_bug.cgi?id=743651
parent 7816dfff
......@@ -4459,9 +4459,9 @@ nautilus_file_get_thumbnail_icon (NautilusFile *file,
thumb_scale = (double) modified_size / s;
}
/* Make sure that icons don't get smaller than NAUTILUS_ICON_SIZE_SMALLEST */
if (s * thumb_scale <= NAUTILUS_CANVAS_ICON_SIZE_SMALL) {
thumb_scale = (double) NAUTILUS_CANVAS_ICON_SIZE_SMALL / s;
/* Make sure that icons don't get smaller than NAUTILUS_LIST_ICON_SIZE_SMALL */
if (s * thumb_scale <= NAUTILUS_LIST_ICON_SIZE_SMALL) {
thumb_scale = (double) NAUTILUS_LIST_ICON_SIZE_SMALL / s;
}
if (file->details->thumbnail_scale == thumb_scale &&
......
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