changeset 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 4be7a2586425
children afe70a164d3b
files src/intervals.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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),