Fix merging of includes when parsing XML.

Incorrect use of addChild was causing overlaid properties not to be
merged correctly when performing an include.
This commit is contained in:
James Turner 2017-01-20 21:43:19 +00:00
parent c9f7483fc4
commit 799b0b4ad6

View File

@ -179,7 +179,9 @@ class PropsHandler(handler.ContentHandler):
self._current = self._current.getChild(name, index, create=True)
else:
self._current = self._current.addChild(name)
# important we use getChild here, so that includes are resolved
# correctly
self._current = self._current.getChild(name, create=True)
self._currentTy = None;
if 'type' in attrs.keys():