diff src/intervals.c @ 41531:960d5d2165b3

(graft_intervals_into_buffer): Don't call set_text_properties_1 on an empty interval.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Mon, 26 Nov 2001 02:16:59 +0000
parents eb5f176de735
children 52fc7b74e8a1
line wrap: on
line diff
--- a/src/intervals.c	Mon Nov 26 01:19:06 2001 +0000
+++ b/src/intervals.c	Mon Nov 26 02:16:59 2001 +0000
@@ -1690,7 +1690,7 @@
   if (NULL_INTERVAL_P (source))
     {
       Lisp_Object buf;
-      if (!inherit && ! NULL_INTERVAL_P (tree))
+      if (!inherit && !NULL_INTERVAL_P (tree) && length > 0)
 	{
 	  XSETBUFFER (buf, buffer);
 	  set_text_properties_1 (make_number (position),