aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node/parenthesesnode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'node/parenthesesnode.cpp')
-rw-r--r--node/parenthesesnode.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/node/parenthesesnode.cpp b/node/parenthesesnode.cpp
index 5c0379f..3a683db 100644
--- a/node/parenthesesnode.cpp
+++ b/node/parenthesesnode.cpp
@@ -110,16 +110,17 @@ void ParenthesesNode::generateDotTree(QString & s)
s.append(toString(false));
s.append(" -> ");
s.append("nullptr;\n");
- if(nullptr!=m_result)
- {
+
+ }
+ if(nullptr!=m_result)
+ {
s.append(toString(false));
s.append(" ->");
s.append(m_result->toString(false));
- s.append(" [label=\"Result\"];\n");
-
-
- m_result->generateDotTree(s);
- }
+ s.append(" [label=\"Result\", style=\"dashed\"];\n");
+ if(nullptr == m_nextNode)
+ m_result->generateDotTree(s);
+
}
}