1
0
Fork 0
forked from len0rd/rockbox

Fixed another code generation bug with viewports and enabled negative numbers in tag parameters

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26465 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Robert Bieber 2010-06-02 06:52:17 +00:00
parent e25c903bfe
commit ea864be708
3 changed files with 6 additions and 5 deletions

View file

@ -97,9 +97,10 @@ QString ParseTreeNode::genCode() const
{
case VIEWPORT:
if(children[0]->element->type == TAG)
buffer.append(TAGSYM);
buffer.append(children[0]->genCode());
if(!children[0]->isParam()
&& children[0]->getElement()->type == TAG)
if(children[0]->element->type == TAG)
buffer.append('\n');
for(int i = 1; i < children.count(); i++)
buffer.append(children[i]->genCode());