From 1f1ce3016fe8589d5b182e244e00333a1f35f1d0 Mon Sep 17 00:00:00 2001 From: Renaud G Date: Thu, 3 Sep 2020 01:50:32 +0200 Subject: Fix paint node. --- node/paintnode.cpp | 6 ++---- node/paintnode.h | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/node/paintnode.cpp b/node/paintnode.cpp index c0c7079..22c020e 100644 --- a/node/paintnode.cpp +++ b/node/paintnode.cpp @@ -83,16 +83,14 @@ void PainterNode::run(ExecutionNode* previous) ++pastDice; } } + m_diceResult->setPrevious(previousResult); + m_result= m_diceResult; } if(nullptr != m_nextNode) { m_nextNode->run(this); } } -Result* PainterNode::getResult() -{ - return m_diceResult; -} QString PainterNode::toString(bool wl) const { diff --git a/node/paintnode.h b/node/paintnode.h index 2283f83..06d849e 100644 --- a/node/paintnode.h +++ b/node/paintnode.h @@ -47,7 +47,6 @@ public: PainterNode(); virtual ~PainterNode(); virtual void run(ExecutionNode* previous= nullptr); - Result* getResult(); virtual QString toString(bool) const; virtual qint64 getPriority() const; void insertColorItem(QString color, int value); -- cgit v1.2.3-70-g09d2