From 5bc58fc3818fa906990d30b0244baf87e6e14e1f Mon Sep 17 00:00:00 2001 From: Johan Malm Date: Wed, 6 Dec 2023 21:55:31 +0000 Subject: [PATCH] theme: fix icon bug Do not carry over previous alt_filename for icons that don't have one. --- src/theme.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/theme.c b/src/theme.c index 1df54389..97a00695 100644 --- a/src/theme.c +++ b/src/theme.c @@ -227,6 +227,7 @@ load_buttons(struct theme *theme) /* If there were no png/svg buttons, use xbm */ snprintf(filename, sizeof(filename), "%s.xbm", b->name); + alt_filename[0] = '\0'; if (b->alt_name) { snprintf(alt_filename, sizeof(alt_filename), "%s.xbm", b->alt_name); } -- 2.52.0