From 64321adf4331a97201321f5a37d17aa90fa5d5db Mon Sep 17 00:00:00 2001 From: Robert Bieber Date: Thu, 10 Jun 2010 21:02:44 +0000 Subject: Theme Editor: Applied FS#11389, switched conditional elements to use tag fields along with children, instead of holding the tag as the first child git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26751 a1c6a512-1295-4272-9138-f99709370657 --- utils/themeeditor/skin_debug.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'utils/themeeditor/skin_debug.c') diff --git a/utils/themeeditor/skin_debug.c b/utils/themeeditor/skin_debug.c index eb132a3..9a463c9 100644 --- a/utils/themeeditor/skin_debug.c +++ b/utils/themeeditor/skin_debug.c @@ -102,6 +102,7 @@ void skin_clear_errors() void skin_debug_tree(struct skin_element* root) { int i; + char *text; struct skin_element* current = root; @@ -123,18 +124,19 @@ void skin_debug_tree(struct skin_element* root) break; case TEXT: - printf("[ Plain text on line %d : %s ]\n", current->line, - current->text); + text = current->data; + printf("[ Plain text on line %d : %s ]\n", current->line, text); break; case COMMENT: + text = current->data; printf("[ Comment on line %d: ", current->line); - for(i = 0; i < (int)strlen(current->text); i++) + for(i = 0; i < (int)strlen(text); i++) { - if(current->text[i] == '\n') + if(text[i] == '\n') printf("\\n"); else - printf("%c", current->text[i]); + printf("%c", text[i]); } printf(" ]\n"); break; -- cgit v1.1