summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2015-01-28 16:06:45 +0000
committerCosimo Cecchi <cosimoc@gnome.org>2015-01-28 16:07:04 +0000
commite928d302a0381c9527a1e56105552598dee070b8 (patch)
tree49cb06e092aa5dc31fb279dcc4aed5b7de3617d5
parent7816dfffba7bbbb993d45d7598e59f033b630aa8 (diff)
downloadnautilus-e928d302a0381c9527a1e56105552598dee070b8.tar.gz
nautilus-file: fix regression with small thumbnails images
Commit 1968379a2e2dc7e601a0379856c05da5ed04d01d changed the code here to use the new names for icon sizes, but not consistently. https://bugzilla.gnome.org/show_bug.cgi?id=743651
-rw-r--r--libnautilus-private/nautilus-file.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libnautilus-private/nautilus-file.c b/libnautilus-private/nautilus-file.c
index b4a3ebde1..b4a9fca05 100644
--- a/libnautilus-private/nautilus-file.c
+++ b/libnautilus-private/nautilus-file.c
@@ -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 &&