From eaecf66a232de556ac9003920f1c9694fed0e2c5 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Tue, 7 May 2002 08:15:18 +0000 Subject: fixed more checking on the fontstruct --- src/DrawUtil.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DrawUtil.cc b/src/DrawUtil.cc index 4b2115b..220a993 100644 --- a/src/DrawUtil.cc +++ b/src/DrawUtil.cc @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: DrawUtil.cc,v 1.6 2002/04/03 23:00:10 fluxgen Exp $ +// $Id: DrawUtil.cc,v 1.7 2002/05/07 08:15:18 fluxgen Exp $ #ifdef HAVE_CONFIG_H # include "config.h" @@ -82,7 +82,7 @@ XRotFontStruct *XRotLoadFont(Display *dpy, char *fontname, float angle) { /* load the font ... */ fontstruct = XLoadQueryFont(dpy, fontname); - if (fontstruct == NULL) { + if (fontstruct == 0 || fontstruct->per_char == 0) { cerr<<"Fluxbox::DrawUtil: No font"<