From 027ce944dab7b31e4b7025b30d6dbe16b11df3c5 Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Fri, 8 Apr 1994 01:24:20 +0000 Subject: (copy_part_of_rope): Replace non-glyph with 0. --- src/xdisp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/xdisp.c') diff --git a/src/xdisp.c b/src/xdisp.c index db0515d04c5..04b848826c1 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -1903,7 +1903,7 @@ copy_part_of_rope (f, to, s, from, len, face) if (! FRAME_TERMCAP_P (f)) while (n--) { - int glyph = XFASTINT (*fp); + int glyph = (INTEGERP (*fp) ? XFASTINT (*fp) : 0); int facecode; if (FAST_GLYPH_FACE (glyph) == 0) -- cgit v1.2.1