diff options
Diffstat (limited to 'utils/themeeditor/skin_parser.c')
-rw-r--r-- | utils/themeeditor/skin_parser.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/utils/themeeditor/skin_parser.c b/utils/themeeditor/skin_parser.c index deb3a21ab2..94d059bfcc 100644 --- a/utils/themeeditor/skin_parser.c +++ b/utils/themeeditor/skin_parser.c | |||
@@ -114,6 +114,11 @@ struct skin_element* skin_parse_viewport(char** document) | |||
114 | retval->children = skin_alloc_children(2); | 114 | retval->children = skin_alloc_children(2); |
115 | retval->children[0] = skin_alloc_element(); | 115 | retval->children[0] = skin_alloc_element(); |
116 | skin_parse_tag(retval->children[0], &cursor); | 116 | skin_parse_tag(retval->children[0], &cursor); |
117 | if(*cursor == '\n') | ||
118 | { | ||
119 | cursor++; | ||
120 | skin_line++; | ||
121 | } | ||
117 | } | 122 | } |
118 | else | 123 | else |
119 | { | 124 | { |
@@ -185,8 +190,10 @@ struct skin_element* skin_parse_viewport(char** document) | |||
185 | last = last->next; | 190 | last = last->next; |
186 | 191 | ||
187 | if(*cursor == '\n') | 192 | if(*cursor == '\n') |
193 | { | ||
188 | cursor++; | 194 | cursor++; |
189 | 195 | skin_line++; | |
196 | } | ||
190 | } | 197 | } |
191 | 198 | ||
192 | *document = cursor; | 199 | *document = cursor; |