diff options
Diffstat (limited to 'utils/themeeditor/models')
-rw-r--r-- | utils/themeeditor/models/parsetreenode.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/utils/themeeditor/models/parsetreenode.cpp b/utils/themeeditor/models/parsetreenode.cpp index 300d5195de..fabb578316 100644 --- a/utils/themeeditor/models/parsetreenode.cpp +++ b/utils/themeeditor/models/parsetreenode.cpp | |||
@@ -532,7 +532,7 @@ void ParseTreeNode::render(const RBRenderInfo &info, RBViewport* viewport, | |||
532 | else if(element->type == CONDITIONAL) | 532 | else if(element->type == CONDITIONAL) |
533 | { | 533 | { |
534 | int child = evalTag(info, true, element->children_count).toInt(); | 534 | int child = evalTag(info, true, element->children_count).toInt(); |
535 | children[child]->render(info, viewport, true); | 535 | children[element->params_count + child]->render(info, viewport, true); |
536 | } | 536 | } |
537 | else if(element->type == SUBLINES) | 537 | else if(element->type == SUBLINES) |
538 | { | 538 | { |
@@ -796,6 +796,10 @@ bool ParseTreeNode::execTag(const RBRenderInfo& info, RBViewport* viewport) | |||
796 | QVariant ParseTreeNode::evalTag(const RBRenderInfo& info, bool conditional, | 796 | QVariant ParseTreeNode::evalTag(const RBRenderInfo& info, bool conditional, |
797 | int branches) | 797 | int branches) |
798 | { | 798 | { |
799 | if(strcmp(element->tag->name, "mv") == 0) | ||
800 | { | ||
801 | int x = 5; | ||
802 | } | ||
799 | if(!conditional) | 803 | if(!conditional) |
800 | { | 804 | { |
801 | return info.device()->data(QString(element->tag->name)); | 805 | return info.device()->data(QString(element->tag->name)); |