diff options
| author | Robert Bieber <robby@bieberphoto.com> | 2010-06-06 03:35:40 +0000 |
|---|---|---|
| committer | Robert Bieber <robby@bieberphoto.com> | 2010-06-06 03:35:40 +0000 |
| commit | f3491e97d0d96f8df8a3c5a16efdef19c0796770 (patch) | |
| tree | b5de3be4832afe9ab7e213ea12d8faa2a3335632 /utils/themeeditor/skin_parser.c | |
| parent | 5619b4f6cf968b8d5820d214790ec29f7f109a63 (diff) | |
| download | rockbox-f3491e97d0d96f8df8a3c5a16efdef19c0796770.zip rockbox-f3491e97d0d96f8df8a3c5a16efdef19c0796770.tar.gz rockbox-f3491e97d0d96f8df8a3c5a16efdef19c0796770.tar.bz2 rockbox-f3491e97d0d96f8df8a3c5a16efdef19c0796770.tar.xz | |
Theme Editor: Began working on open document functionality (still incomplete), fixed a nested conditional parsing bug in the parser, and fixed segfault-on-codegen-from-empty-tree bug
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26609 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/skin_parser.c')
| -rw-r--r-- | utils/themeeditor/skin_parser.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/utils/themeeditor/skin_parser.c b/utils/themeeditor/skin_parser.c index a771fe7..c7df7af 100644 --- a/utils/themeeditor/skin_parser.c +++ b/utils/themeeditor/skin_parser.c @@ -685,9 +685,15 @@ int skin_parse_conditional(struct skin_element* element, char** document) while(nested) { if(*cursor == ENUMLISTOPENSYM) + { nested++; - if(*cursor == ENUMLISTCLOSESYM) + break; + } + else if(*cursor == ENUMLISTCLOSESYM) + { nested--; + break; + } cursor++; } } |