From 9ee7529627d36949b2435c00f4d5d3ecb96aff0c Mon Sep 17 00:00:00 2001 From: Renaud G Date: Thu, 15 Oct 2020 00:22:20 +0200 Subject: Revert "Fix output error" This reverts commit fa2c9fe8754869c7df507fe1fa6143a1ef4bf84c. --- parsingtoolbox.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'parsingtoolbox.cpp') diff --git a/parsingtoolbox.cpp b/parsingtoolbox.cpp index 1d873c2..dd29d8f 100644 --- a/parsingtoolbox.cpp +++ b/parsingtoolbox.cpp @@ -2363,14 +2363,8 @@ ExportedDiceResult ParsingToolBox::finalDiceResultFromInstruction(ExecutionNode* for(auto& die : diceResult->getResultList()) { faces= die->getFaces(); - QList listValues; - auto listOfValues= die->getListValue(); - if(listOfValues.size() > 1) - listValues << die->getValue() << listOfValues; - else - listValues << listOfValues; - HighLightDice hlDice(listValues, die->isHighlighted(), die->getColor(), die->hasBeenDisplayed(), - die->getFaces(), die->getUuid()); + HighLightDice hlDice(die->getListValue(), die->isHighlighted(), die->getColor(), + die->hasBeenDisplayed(), die->getFaces(), die->getUuid()); if(alreadyAdded.find(die->getUuid()) == alreadyAdded.end() && !hlDice.displayed()) { list.append(hlDice); -- cgit v1.2.3-70-g09d2