Mercurial > emacs
diff src/xterm.c @ 5719:d3074ff90741
(dumpglyphs): Don't crash for invalid face code.
| author | Richard M. Stallman <rms@gnu.org> |
|---|---|
| date | Tue, 01 Feb 1994 06:49:18 +0000 |
| parents | 0c351de98a26 |
| children | eb722251d156 |
line wrap: on
line diff
--- a/src/xterm.c Tue Feb 01 03:46:09 1994 +0000 +++ b/src/xterm.c Tue Feb 01 06:49:18 1994 +0000 @@ -524,11 +524,11 @@ /* First look at the face of the text itself. */ if (cf != 0) { - /* The face codes on the glyphs must be valid indices into the - frame's face table. */ + /* It's possible for the display table to specify + a face code that is out of range. Use 0 in that case. */ if (cf < 0 || cf >= FRAME_N_COMPUTED_FACES (f) || FRAME_COMPUTED_FACES (f) [cf] == 0) - abort (); + cf = 0; if (cf == 1) face = FRAME_MODE_LINE_FACE (f);
