forked from len0rd/rockbox
Theme Editor: Fixed segfaulting conditional bug
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27204 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
2cfa7ba746
commit
82618e82e6
1 changed files with 5 additions and 1 deletions
|
@ -532,7 +532,7 @@ void ParseTreeNode::render(const RBRenderInfo &info, RBViewport* viewport,
|
|||
else if(element->type == CONDITIONAL)
|
||||
{
|
||||
int child = evalTag(info, true, element->children_count).toInt();
|
||||
children[child]->render(info, viewport, true);
|
||||
children[element->params_count + child]->render(info, viewport, true);
|
||||
}
|
||||
else if(element->type == SUBLINES)
|
||||
{
|
||||
|
@ -796,6 +796,10 @@ bool ParseTreeNode::execTag(const RBRenderInfo& info, RBViewport* viewport)
|
|||
QVariant ParseTreeNode::evalTag(const RBRenderInfo& info, bool conditional,
|
||||
int branches)
|
||||
{
|
||||
if(strcmp(element->tag->name, "mv") == 0)
|
||||
{
|
||||
int x = 5;
|
||||
}
|
||||
if(!conditional)
|
||||
{
|
||||
return info.device()->data(QString(element->tag->name));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue