1
0
Fork 0
forked from len0rd/rockbox

Theme Editor: Began working on open document functionality (still incomplete), fixed a nested conditional parsing bug in the parser, and fixed segfault-on-codegen-from-empty-tree bug

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26609 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Robert Bieber 2010-06-06 03:35:40 +00:00
parent 5619b4f6cf
commit f3491e97d0
6 changed files with 35 additions and 11 deletions

View file

@ -685,9 +685,15 @@ int skin_parse_conditional(struct skin_element* element, char** document)
while(nested)
{
if(*cursor == ENUMLISTOPENSYM)
{
nested++;
if(*cursor == ENUMLISTCLOSESYM)
break;
}
else if(*cursor == ENUMLISTCLOSESYM)
{
nested--;
break;
}
cursor++;
}
}