From 41ffe7c87b2b2c3b24c5c9c265a283fc2b7bb440 Mon Sep 17 00:00:00 2001 From: bynect <68197565+bynect@users.noreply.github.com> Date: Sun, 3 Mar 2024 18:26:43 +0100 Subject: [PATCH] Make recursive icon lookup work with size == 0 --- src/icon-lookup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/icon-lookup.c b/src/icon-lookup.c index 60e18638b..f778d22fe 100644 --- a/src/icon-lookup.c +++ b/src/icon-lookup.c @@ -253,7 +253,7 @@ char *find_icon_in_theme(const char *name, int theme_index, int size) { break; case THEME_DIR_SCALABLE: - match_size = dir.min_size <= size && dir.max_size >= size; + match_size = (size == 0 || dir.min_size <= size) && dir.max_size >= size; break; case THEME_DIR_THRESHOLD: