summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorRobert Bieber <robby@bieberphoto.com>2010-06-02 07:04:33 +0000
committerRobert Bieber <robby@bieberphoto.com>2010-06-02 07:04:33 +0000
commit7f10b0336e9aacd4fb21269da652671ff610aa05 (patch)
treee56fa23e13ac53d312882a29fe59a3896c5f2e6b /utils
parentea864be7082cbe2d1a9d4f5b1e809feacb1d1aaf (diff)
downloadrockbox-7f10b0336e9aacd4fb21269da652671ff610aa05.tar.gz
rockbox-7f10b0336e9aacd4fb21269da652671ff610aa05.tar.bz2
rockbox-7f10b0336e9aacd4fb21269da652671ff610aa05.zip
Theme Editor: Fixed some more code generation bugs
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26466 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils')
-rw-r--r--utils/themeeditor/parsetreenode.cpp4
-rw-r--r--utils/themeeditor/skin_parser.c9
2 files changed, 9 insertions, 4 deletions
diff --git a/utils/themeeditor/parsetreenode.cpp b/utils/themeeditor/parsetreenode.cpp
index 3a5a63dcee..7530299870 100644
--- a/utils/themeeditor/parsetreenode.cpp
+++ b/utils/themeeditor/parsetreenode.cpp
@@ -116,10 +116,8 @@ QString ParseTreeNode::genCode() const
if(children[i]->element->type == TAG)
buffer.append(TAGSYM);
buffer.append(children[i]->genCode());
- buffer.append('\n');
}
- if(children.count() == 0)
- buffer.append('\n');
+ buffer.append('\n');
break;
case SUBLINES:
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)
retval->children = skin_alloc_children(2);
retval->children[0] = skin_alloc_element();
skin_parse_tag(retval->children[0], &cursor);
+ if(*cursor == '\n')
+ {
+ cursor++;
+ skin_line++;
+ }
}
else
{
@@ -185,8 +190,10 @@ struct skin_element* skin_parse_viewport(char** document)
last = last->next;
if(*cursor == '\n')
+ {
cursor++;
-
+ skin_line++;
+ }
}
*document = cursor;