diff options
Diffstat (limited to 'utils/themeeditor/models/parsetreenode.cpp')
| -rw-r--r-- | utils/themeeditor/models/parsetreenode.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/utils/themeeditor/models/parsetreenode.cpp b/utils/themeeditor/models/parsetreenode.cpp index 08ce703..3a894a1 100644 --- a/utils/themeeditor/models/parsetreenode.cpp +++ b/utils/themeeditor/models/parsetreenode.cpp @@ -518,7 +518,13 @@ void ParseTreeNode::render(const RBRenderInfo &info, RBViewport* viewport, { for(int i = 0; i < children.count(); i++) children[i]->render(info, viewport); - if(!noBreak) + /* TODO + * The second element of this if is a temporary hack to allow Vf and Vb + * tags in a viewport without forcing the first line of text down. A + * proper solution to this problem needs to be worked out in the parser + * as soon as possible + */ + if(!noBreak && element->line != viewport->declarationLine()) viewport->newLine(); } else if(element->type == TEXT) |