From b188f1f08abd02e02920573bbf611ebb8673d947 Mon Sep 17 00:00:00 2001 From: louis Date: Fri, 10 Jul 2015 15:55:49 +0200 Subject: [PATCH] fixed bug that menulists are not read if no currentelement is defined --- HISTORY | 5 +++++ libtemplate/xmlparser.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/HISTORY b/HISTORY index e32b0f9..66626f7 100644 --- a/HISTORY +++ b/HISTORY @@ -384,3 +384,8 @@ Version 0.5.3 Version 0.6.0 +- fixed bug that menulists are not read if no currentelement + is defined + +Version 0.6.1 + diff --git a/libtemplate/xmlparser.c b/libtemplate/xmlparser.c index 3df65f3..ce41918 100644 --- a/libtemplate/xmlparser.c +++ b/libtemplate/xmlparser.c @@ -247,7 +247,7 @@ void cXmlParser::ParseViewList(cTemplateView *subView) { currentElement->SetGlobals(globals); currentElement->SetParameters(attribsCur); if (!LevelDown()) - return; + continue; do { if (!CheckNodeName("areacontainer") && !CheckNodeName("area") && !CheckNodeName("areascroll")) { esyslog("skindesigner: invalid tag \"%s\" in viewelement", NodeName());