forked from len0rd/rockbox
Theme Editor: Fixed bug that crashed conditionals nested in sublines, began work on making progress bars implement RBMovable
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27714 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
265ee156f2
commit
f657e49103
3 changed files with 16 additions and 2 deletions
|
@ -1065,6 +1065,9 @@ double ParseTreeNode::findConditionalTime(ParseTreeNode *conditional,
|
|||
{
|
||||
int child = conditional->evalTag(info, true,
|
||||
conditional->children.count()).toInt();
|
||||
if(child >= conditional->children.count())
|
||||
child = conditional->children.count() - 1;
|
||||
|
||||
return findBranchTime(conditional->children[child], info);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue