diff options
| author | 2018-12-12 14:07:05 +0100 | |
|---|---|---|
| committer | 2018-12-12 14:07:05 +0100 | |
| commit | 1a904315abb8bf75de4c833b2dfdd1358452ca25 (patch) | |
| tree | 30a7f7ecc229e873203984f5f7eda93da93d66c3 /node/parenthesesnode.cpp | |
| parent | 0bc3bcb30a50a81e818109b949c1c5a500c89fe7 (diff) | |
| download | OneRoll-1a904315abb8bf75de4c833b2dfdd1358452ca25.tar.gz OneRoll-1a904315abb8bf75de4c833b2dfdd1358452ca25.zip | |
add new way to display result in dot file
Diffstat (limited to 'node/parenthesesnode.cpp')
| -rw-r--r-- | node/parenthesesnode.cpp | 15 |
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); + } } |