(w32_compute_glyph_string_overhangs): Don't compute if font was not found.
authorJason Rumney <jasonr@gnu.org>
Fri, 2 May 2008 13:30:30 +0000 (13:30 +0000)
committerJason Rumney <jasonr@gnu.org>
Fri, 2 May 2008 13:30:30 +0000 (13:30 +0000)
src/w32term.c

index ac92504958db41bb8eefa434e4a5b4abd9bb7921..f79af6adcb337b4e886b9d2f8927251baa692622 100644 (file)
@@ -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;