Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/widgets/widget/widget.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -571,9 +571,10 @@ Slots will be copied shallowly except for CHILDREN."
(copy (make-instance (type-of root))))
(dolist (slotname slotnames)
(if (slot-boundp root slotname)
(case slotname
(children (mapc #'copy-widget-tree slotname))
(t (setf (slot-value copy slotname) (slot-value root slotname))))
(setf (slot-value copy slotname)
(if (eql slotname 'children)
(mapcar #'copy-widget-tree (slot-value root slotname))
(slot-value root slotname)))
(slot-makunbound root slotname)))
copy))))

Expand Down