1
0
Fork 0
forked from len0rd/rockbox

Theme Editor: Fixed some more code generation bugs

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26466 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Robert Bieber 2010-06-02 07:04:33 +00:00
parent ea864be708
commit 7f10b0336e
2 changed files with 9 additions and 4 deletions

View file

@ -116,9 +116,7 @@ QString ParseTreeNode::genCode() const
if(children[i]->element->type == TAG)
buffer.append(TAGSYM);
buffer.append(children[i]->genCode());
buffer.append('\n');
}
if(children.count() == 0)
buffer.append('\n');
break;

View file

@ -114,6 +114,11 @@ struct skin_element* skin_parse_viewport(char** document)
retval->children = skin_alloc_children(2);
retval->children[0] = skin_alloc_element();
skin_parse_tag(retval->children[0], &cursor);
if(*cursor == '\n')
{
cursor++;
skin_line++;
}
}
else
{
@ -185,8 +190,10 @@ struct skin_element* skin_parse_viewport(char** document)
last = last->next;
if(*cursor == '\n')
{
cursor++;
skin_line++;
}
}
*document = cursor;