changeset 18338:e15d8860f504

Don't delete nil overlays.
author Per Abrahamsen <abraham@dina.kvl.dk>
date Thu, 19 Jun 1997 15:31:34 +0000
parents c87e4cdfcc71
children 7def48db254a
files lisp/wid-edit.el
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/wid-edit.el	Thu Jun 19 12:52:23 1997 +0000
+++ b/lisp/wid-edit.el	Thu Jun 19 15:31:34 1997 +0000
@@ -815,8 +815,10 @@
 	(children (widget-get widget :children)))
     (set-marker from nil)
     (set-marker to nil)
-    (delete-overlay button)
-    (delete-overlay field)
+    (when button
+      (delete-overlay button))
+    (when field
+      (delete-overlay field))
     (mapcar 'widget-leave-text children)))
 
 ;;; Keymap and Commands.