aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2020-10-06 22:21:33 +0200
committerRenaud G <renaud@rolisteam.org>2020-10-06 22:22:40 +0200
commitfa2c9fe8754869c7df507fe1fa6143a1ef4bf84c (patch)
treebb2ec693761dbb983ad40b3f7017dd33d64e93a5
parent02b2120bb3fb7625c7964db7b3b8284ebc0933e1 (diff)
downloadOneRoll-fa2c9fe8754869c7df507fe1fa6143a1ef4bf84c.tar.gz
OneRoll-fa2c9fe8754869c7df507fe1fa6143a1ef4bf84c.zip
Fix output error
-rw-r--r--parsingtoolbox.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/parsingtoolbox.cpp b/parsingtoolbox.cpp
index 23486cd..5551998 100644
--- a/parsingtoolbox.cpp
+++ b/parsingtoolbox.cpp
@@ -2360,8 +2360,14 @@ ExportedDiceResult ParsingToolBox::finalDiceResultFromInstruction(ExecutionNode*
for(auto& die : diceResult->getResultList())
{
faces= die->getFaces();
- HighLightDice hlDice(die->getListValue(), die->isHighlighted(), die->getColor(),
- die->hasBeenDisplayed(), die->getFaces(), die->getUuid());
+ QList<qint64> 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());
if(alreadyAdded.find(die->getUuid()) == alreadyAdded.end() && !hlDice.displayed())
{
list.append(hlDice);