diff options
| author | 2016-09-16 20:35:11 +0200 | |
|---|---|---|
| committer | 2016-09-16 20:35:11 +0200 | |
| commit | 70e09294fca1022d9370fe2fd631a98480c284b2 (patch) | |
| tree | 4b09bfeed97a10ae19bede3f1c7eafafb2cdfcb0 /node/executionnode.cpp | |
| parent | 92e415fa59bb1508bbbd93905dbe225d4202d571 (diff) | |
| download | OneRoll-70e09294fca1022d9370fe2fd631a98480c284b2.tar.gz OneRoll-70e09294fca1022d9370fe2fd631a98480c284b2.zip | |
-Fix some value on diceparser.
Diffstat (limited to 'node/executionnode.cpp')
| -rw-r--r-- | node/executionnode.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/node/executionnode.cpp b/node/executionnode.cpp index d2f291b..a419bec 100644 --- a/node/executionnode.cpp +++ b/node/executionnode.cpp @@ -62,7 +62,7 @@ void ExecutionNode::generateDotTree(QString& s) s.append(toString(false)); s.append(" -> "); s.append(m_nextNode->toString(false)); - s.append(";\n"); + s.append("[label=\"next\"];\n"); // s.append(" [label=\"nextNode\"];\n"); m_nextNode->generateDotTree(s); } @@ -71,13 +71,17 @@ void ExecutionNode::generateDotTree(QString& s) s.append(toString(false)); s.append(" -> "); s.append("NULL;\n"); + if(NULL!=m_result) + { + s.append(toString(false)); + s.append(" ->"); + s.append(m_result->toString(false)); + s.append(" [label=\"Result\"];\n"); - s.append(toString(false)); - s.append(" ->"); - s.append(m_result->toString(false)); - s.append(" [label=\"Result\"];\n"); - m_result->generateDotTree(s); + m_result->generateDotTree(s); + } } + } |