diff options
Diffstat (limited to 'utils/themeeditor/parsetreenode.cpp')
| -rw-r--r-- | utils/themeeditor/parsetreenode.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/themeeditor/parsetreenode.cpp b/utils/themeeditor/parsetreenode.cpp index 63555ae..3a5a63d 100644 --- a/utils/themeeditor/parsetreenode.cpp +++ b/utils/themeeditor/parsetreenode.cpp @@ -97,9 +97,10 @@ QString ParseTreeNode::genCode() const { case VIEWPORT: + if(children[0]->element->type == TAG) + buffer.append(TAGSYM); buffer.append(children[0]->genCode()); - if(!children[0]->isParam() - && children[0]->getElement()->type == TAG) + if(children[0]->element->type == TAG) buffer.append('\n'); for(int i = 1; i < children.count(); i++) buffer.append(children[i]->genCode()); |