From: Michael Stapelberg Date: Wed, 26 Oct 2011 20:21:55 +0000 (+0100) Subject: Bugfix: Only fallback on the font if it’s actually set (Thanks phnom) X-Git-Tag: 4.1~42 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=af1871e41433b63682bf90f6d03a6f99cdc12b56;p=i3%2Fi3 Bugfix: Only fallback on the font if it’s actually set (Thanks phnom) --- 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