aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xbmc/guilib/GUIIncludes.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/xbmc/guilib/GUIIncludes.cpp b/xbmc/guilib/GUIIncludes.cpp
index ee17330004..c389122d89 100644
--- a/xbmc/guilib/GUIIncludes.cpp
+++ b/xbmc/guilib/GUIIncludes.cpp
@@ -618,12 +618,16 @@ void CGUIIncludes::ResolveParametersForNode(TiXmlElement *node, const Params& pa
else if (result != NO_PARAMS_FOUND)
child->SetValue(newValue);
}
- else if (child->Type() == TiXmlNode::TINYXML_ELEMENT)
+ else if (child->Type() == TiXmlNode::TINYXML_ELEMENT ||
+ child->Type() == TiXmlNode::TINYXML_COMMENT)
{
do
{
- TiXmlElement *next = child->NextSiblingElement(); // save next as current child might be removed from the tree
- ResolveParametersForNode(static_cast<TiXmlElement *>(child), params);
+ if (child->Type() == TiXmlNode::TINYXML_ELEMENT)
+ ResolveParametersForNode(static_cast<TiXmlElement*>(child), params);
+
+ // save next as current child might be removed from the tree
+ TiXmlElement* next = child->NextSiblingElement();
child = next;
}
while (child);