From 8965fd87d2d342ce6d0c31acdf9e85cca505a02b Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 19 Sep 2007 18:00:21 +0200 Subject: [PATCH] fix font loading on failure --- config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.c b/config.c index d37fde93b..3c2a31816 100644 --- a/config.c +++ b/config.c @@ -456,7 +456,7 @@ initfont(const char *fontstr, Display * disp, DC * drawcontext) XFreeFont(disp, drawcontext->font.xfont); drawcontext->font.xfont = NULL; if(!(drawcontext->font.xfont = XLoadQueryFont(disp, fontstr)) - || !(drawcontext->font.xfont = XLoadQueryFont(disp, "fixed"))) + && !(drawcontext->font.xfont = XLoadQueryFont(disp, "fixed"))) die("awesome: error, cannot load font: '%s'\n", fontstr); drawcontext->font.ascent = drawcontext->font.xfont->ascent; drawcontext->font.descent = drawcontext->font.xfont->descent;