# HG changeset patch # User Gerd Moellmann # Date 956062908 0 # Node ID 437e522505fb11fd0859afc9628a3fadd03f25cc # Parent 60285ddb5d02c5965a8b629a28bafcad17f0144a (x_produce_glyphs) : Take into account that the per-character metrics may be null. diff -r 60285ddb5d02 -r 437e522505fb src/xterm.c --- a/src/xterm.c Mon Apr 17 16:08:26 2000 +0000 +++ b/src/xterm.c Tue Apr 18 13:01:48 2000 +0000 @@ -1,5 +1,5 @@ /* X Communication module for terminals which understand the X protocol. - Copyright (C) 1989, 93, 94, 95, 96, 1997, 1998, 1999 + Copyright (C) 1989, 93, 94, 95, 96, 1997, 1998, 1999, 2000 Free Software Foundation, Inc. This file is part of GNU Emacs. @@ -1884,8 +1884,7 @@ /* If characters with lbearing or rbearing are displayed in this line, record that fact in a flag of the glyph row. This is used to optimize X output code. */ - if (pcm->lbearing < 0 - || pcm->rbearing > pcm->width) + if (pcm && (pcm->lbearing < 0 || pcm->rbearing > pcm->width)) it->glyph_row->contains_overlapping_glyphs_p = 1; } }