summaryrefslogtreecommitdiffstats
path: root/utils/themeeditor/models/parsetreenode.cpp
diff options
context:
space:
mode:
authorRobert Bieber <robby@bieberphoto.com>2010-07-01 02:29:58 +0000
committerRobert Bieber <robby@bieberphoto.com>2010-07-01 02:29:58 +0000
commitc215d97b4dfdd08a59af20dacb5178087ee230c5 (patch)
tree526827bdbb80f42c65c419860e65fa71929f840f /utils/themeeditor/models/parsetreenode.cpp
parent8cd51a70c58afc67136d889400a0aafe68107ff1 (diff)
downloadrockbox-c215d97b4dfdd08a59af20dacb5178087ee230c5.tar.gz
rockbox-c215d97b4dfdd08a59af20dacb5178087ee230c5.tar.bz2
rockbox-c215d97b4dfdd08a59af20dacb5178087ee230c5.zip
Theme Editor: Made blank lines render newlines in the output
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27206 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/models/parsetreenode.cpp')
-rw-r--r--utils/themeeditor/models/parsetreenode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/themeeditor/models/parsetreenode.cpp b/utils/themeeditor/models/parsetreenode.cpp
index fabb578316..6d712c80e7 100644
--- a/utils/themeeditor/models/parsetreenode.cpp
+++ b/utils/themeeditor/models/parsetreenode.cpp
@@ -518,7 +518,7 @@ void ParseTreeNode::render(const RBRenderInfo &info, RBViewport* viewport,
for(int i = 0; i < children.count(); i++)
children[i]->render(info, viewport);
if(!noBreak)
- viewport->newLine();
+ viewport->newLine(children.count() > 0 ? false : true);
}
else if(element->type == TEXT)
{