forked from len0rd/rockbox
Theme Editor: Fixed bug in parser handling empty lines and made ParseTreeModel handle the new VIEWPORT element properly
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26792 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0cca15c6d0
commit
3c95dbb208
6 changed files with 34 additions and 13 deletions
|
@ -56,7 +56,6 @@ ParseTreeNode::ParseTreeNode(struct skin_element* data, ParseTreeNode* parent)
|
|||
}
|
||||
break;
|
||||
|
||||
case VIEWPORT:
|
||||
case CONDITIONAL:
|
||||
for(int i = 0; i < element->params_count; i++)
|
||||
children.append(new ParseTreeNode(&data->params[i], this));
|
||||
|
@ -71,6 +70,11 @@ ParseTreeNode::ParseTreeNode(struct skin_element* data, ParseTreeNode* parent)
|
|||
}
|
||||
break;
|
||||
|
||||
case VIEWPORT:
|
||||
for(int i = 0; i < element->params_count; i++)
|
||||
children.append(new ParseTreeNode(&data->params[i], this));
|
||||
/* Deliberate fall-through here */
|
||||
|
||||
case LINE:
|
||||
for(int i = 0; i < data->children_count; i++)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue