summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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++;
}