From: Dana Jansens Date: Thu, 2 Jan 2003 16:03:28 +0000 (+0000) Subject: dont use _font when making an xft font. if the xftfont fails to load, then the font... X-Git-Tag: openbox-2_3_0^2~15 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=909d3eeb7e5f572d911089744fcd1d68eca15502;p=dana%2Fopenbox.git dont use _font when making an xft font. if the xftfont fails to load, then the font class in !valid. --- diff --git a/src/Font.cc b/src/Font.cc index 8a04abc9..593d723f 100644 --- a/src/Font.cc +++ b/src/Font.cc @@ -81,10 +81,6 @@ BFont::BFont(Display *d, BScreen *screen, const string &family, int size, if (! _xftfont) return; // failure - _font = XLoadQueryFont(_display, buildXlfd().c_str()); - if (! _font) - return; // failure - _valid = True; } #endif