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:
+3
-1
@@ -179,7 +179,9 @@ class PropsHandler(handler.ContentHandler):
|
|||||||
|
|
||||||
self._current = self._current.getChild(name, index, create=True)
|
self._current = self._current.getChild(name, index, create=True)
|
||||||
else:
|
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;
|
self._currentTy = None;
|
||||||
if 'type' in attrs.keys():
|
if 'type' in attrs.keys():
|
||||||
|
|||||||
Reference in New Issue
Block a user