memory (params), test: fixes updateParams bug
This commit is contained in:
parent
900047c921
commit
5f2b90e163
1 changed files with 28 additions and 13 deletions
|
|
@ -250,7 +250,7 @@ class Params(object):
|
|||
continue
|
||||
node = self.__get_unique_node(tgt_parent, child.nodeName, child.getAttribute("name"))
|
||||
if not node: # The node is new
|
||||
tgt_parent.appendChild(child)
|
||||
tgt_parent.appendChild(child.cloneNode(True))
|
||||
else:
|
||||
if child.nodeName == "param":
|
||||
# The child updates an existing parameter, we replace the node
|
||||
|
|
|
|||
Loading…
Reference in a new issue