From: Jason Rumney Date: Fri, 2 May 2008 13:30:30 +0000 (+0000) Subject: (w32_compute_glyph_string_overhangs): Don't compute if font was not found. X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=61d72ddc02c6c088e1b5f4ce1a39e02a217f1d7c;p=emacs.git (w32_compute_glyph_string_overhangs): Don't compute if font was not found. --- 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;