From af1871e41433b63682bf90f6d03a6f99cdc12b56 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Wed, 26 Oct 2011 21:21:55 +0100 Subject: [PATCH] =?UTF-8?q?Bugfix:=20Only=20fallback=20on=20the=20font=20i?= =?UTF-8?q?f=20it=E2=80=99s=20actually=20set=20(Thanks=20phnom)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/cfgparse.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cfgparse.y b/src/cfgparse.y index 2e0bbe0b..252df5d0 100644 --- a/src/cfgparse.y +++ b/src/cfgparse.y @@ -1002,7 +1002,7 @@ bar: } /* If no font was explicitly set, we use the i3 font as default */ - if (!current_bar.font) + if (!current_bar.font && font_pattern) current_bar.font = sstrdup(font_pattern); /* Copy the current (static) structure into a dynamically allocated