summaryrefslogtreecommitdiff
path: root/utils/newparser
diff options
context:
space:
mode:
Diffstat (limited to 'utils/newparser')
-rw-r--r--utils/newparser/skin_render.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/utils/newparser/skin_render.c b/utils/newparser/skin_render.c
index 1690455086..09c9ca1355 100644
--- a/utils/newparser/skin_render.c
+++ b/utils/newparser/skin_render.c
@@ -43,7 +43,7 @@ static void do_tags_in_hidden_conditional(struct skin_element* branch)
43{ 43{
44 /* Tags here are ones which need to be "turned off" or cleared 44 /* Tags here are ones which need to be "turned off" or cleared
45 * if they are in a conditional branch which isnt being used */ 45 * if they are in a conditional branch which isnt being used */
46 if (branch->type == SUBLINES) 46 if (branch->type == LINE_ALTERNATOR)
47 { 47 {
48 int i; 48 int i;
49 for (i=0; i<branch->children_count; i++) 49 for (i=0; i<branch->children_count; i++)
@@ -71,7 +71,6 @@ static void do_tags_in_hidden_conditional(struct skin_element* branch)
71 break; 71 break;
72 case SKIN_TOKEN_IMAGE_DISPLAY: 72 case SKIN_TOKEN_IMAGE_DISPLAY:
73 case SKIN_TOKEN_IMAGE_PRELOAD_DISPLAY: 73 case SKIN_TOKEN_IMAGE_PRELOAD_DISPLAY:
74 printf("disable image\n");
75 /* clear images */ 74 /* clear images */
76 break; 75 break;
77 default: 76 default:
@@ -109,7 +108,7 @@ void skin_render_line(struct skin_element* line,
109 do_tags_in_hidden_conditional(child->children[last_value]); 108 do_tags_in_hidden_conditional(child->children[last_value]);
110 last_value = value; 109 last_value = value;
111 110
112 if (child->children[value]->type == SUBLINES) 111 if (child->children[value]->type == LINE_ALTERNATOR)
113 func = skin_render_alternator; 112 func = skin_render_alternator;
114 else if (child->children[value]->type == LINE) 113 else if (child->children[value]->type == LINE)
115 func = skin_render_line; 114 func = skin_render_line;