summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Bieber <robby@bieberphoto.com>2010-06-06 03:45:18 +0000
committerRobert Bieber <robby@bieberphoto.com>2010-06-06 03:45:18 +0000
commitb807cb0808b2c045e0fdcd332c711a713eb25032 (patch)
treeb30627c381f986b19d30377b1aa32d67cf29866b
parentf3491e97d0d96f8df8a3c5a16efdef19c0796770 (diff)
downloadrockbox-b807cb0808b2c045e0fdcd332c711a713eb25032.tar.gz
rockbox-b807cb0808b2c045e0fdcd332c711a713eb25032.tar.bz2
rockbox-b807cb0808b2c045e0fdcd332c711a713eb25032.zip
Theme Editor: Fixed another conditional child-counting bug
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26610 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--utils/themeeditor/skin_parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/themeeditor/skin_parser.c b/utils/themeeditor/skin_parser.c
index c7df7af0c0..c046dc66ad 100644
--- a/utils/themeeditor/skin_parser.c
+++ b/utils/themeeditor/skin_parser.c
@@ -687,12 +687,12 @@ int skin_parse_conditional(struct skin_element* element, char** document)
if(*cursor == ENUMLISTOPENSYM)
{
nested++;
- break;
}
else if(*cursor == ENUMLISTCLOSESYM)
{
nested--;
- break;
+ if(nested == 0)
+ break;
}
cursor++;
}