Bugfix: Only fallback on the font if it’s actually set (Thanks phnom)

This commit is contained in:
Michael Stapelberg 2011-10-26 21:21:55 +01:00
parent ee804a0635
commit af1871e414
1 changed files with 1 additions and 1 deletions

View File

@ -1002,7 +1002,7 @@ bar:
} }
/* If no font was explicitly set, we use the i3 font as default */ /* 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); current_bar.font = sstrdup(font_pattern);
/* Copy the current (static) structure into a dynamically allocated /* Copy the current (static) structure into a dynamically allocated