# HG changeset patch # User wycc # Date 1295097590 -28800 # Node ID 99de8334078267c045863a9e257f866283fde68d # Parent e816b0c2deec533dca3edfedd47ca3580e64a475# Parent 922d1caf66326f56dec76a554a362095dc013f5a Merge diff -r e816b0c2deec -r 99de83340782 pyink/domview.py --- a/pyink/domview.py Sat Jan 15 21:09:03 2011 +0800 +++ b/pyink/domview.py Sat Jan 15 21:19:50 2011 +0800 @@ -732,7 +732,7 @@ def copy_group_children(self, src_group, dst_group): # Search for the duplicated group doc = self._doc - + dup_group = src_group.duplicate(doc) old_nodes = _DOM_iterator(src_group) @@ -757,7 +757,7 @@ new_gids.add(gid) new_node.setAttribute('id', gid) pass - + for child in dup_group.childList(): dup_group.removeChild(child) # prvent from crash dst_group.appendChild(child)