summaryrefslogtreecommitdiff
path: root/src/lib/efreet
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/efreet/efreet_icon.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/efreet/efreet_icon.c b/src/lib/efreet/efreet_icon.c
index 6b02bfb19d..ff62779bae 100644
--- a/src/lib/efreet/efreet_icon.c
+++ b/src/lib/efreet/efreet_icon.c
@@ -543,7 +543,9 @@ efreet_icon_lookup_icon(Efreet_Cache_Icon *icon, unsigned int size)
543 distance = efreet_icon_size_distance(icon->icons[i], size); 543 distance = efreet_icon_size_distance(icon->icons[i], size);
544 if (distance > minimal_distance) continue; 544 if (distance > minimal_distance) continue;
545 // prefer downsizing 545 // prefer downsizing
546 if ((distance == minimal_distance) && (icon->icons[i]->normal < ret_size)) continue; 546 if ((EINA_DBL_CMP(distance, minimal_distance)) &&
547 (icon->icons[i]->normal < ret_size))
548 continue;
547 549
548 tmp = efreet_icon_lookup_path(icon->icons[i]); 550 tmp = efreet_icon_lookup_path(icon->icons[i]);
549 551