From 61d72ddc02c6c088e1b5f4ce1a39e02a217f1d7c Mon Sep 17 00:00:00 2001 From: Jason Rumney Date: Fri, 2 May 2008 13:30:30 +0000 Subject: [PATCH] (w32_compute_glyph_string_overhangs): Don't compute if font was not found. --- src/w32term.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/w32term.c b/src/w32term.c index ac92504958d..f79af6adcb3 100644 --- a/src/w32term.c +++ b/src/w32term.c @@ -1739,15 +1739,15 @@ x_set_glyph_string_clipping_exactly (src, dst) } /* RIF: - Compute left and right overhang of glyph string S. If S is a glyph - string for a composition, assume overhangs don't exist. */ + Compute left and right overhang of glyph string S. */ static void w32_compute_glyph_string_overhangs (s) struct glyph_string *s; { if (s->cmp == NULL - && s->first_glyph->type == CHAR_GLYPH) + && s->first_glyph->type == CHAR_GLYPH + && !s->font_not_found_p) { unsigned *code = alloca (sizeof (unsigned) * s->nchars); struct font *font = s->font; -- 2.39.5