From 4a6b19b27866326fa069a422ed2c862ab9e9d4d2 Mon Sep 17 00:00:00 2001 From: Renaud G Date: Sat, 27 Oct 2018 00:35:15 +0200 Subject: Get full result. --- cli/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cli') diff --git a/cli/main.cpp b/cli/main.cpp index c40cff6..7cf2b7b 100644 --- a/cli/main.cpp +++ b/cli/main.cpp @@ -232,8 +232,10 @@ int startDiceParsing(QStringList& cmds,QString& treeFile,bool withColor, EXPORTF { parser.start(); QList list; + QList listFull; bool homogeneous = true; parser.getLastDiceResult(list,homogeneous); + parser.getDiceResultFromAllInstruction(listFull); bool allSameFaceCount, allSameColor; auto array = DisplayToolBox::diceToJson(list,allSameFaceCount,allSameColor); QString resultStr; @@ -313,7 +315,7 @@ int startDiceParsing(QStringList& cmds,QString& treeFile,bool withColor, EXPORTF stringResult.replace(QStringLiteral("$%1").arg(i),(*it)); --i; } - i = strLst.size(); + i = listFull.size(); for(auto it = strLst.rbegin(); it != strLst.rend() ; ++it) { stringResult.replace(QStringLiteral("ยต%1").arg(i),(*it)); -- cgit v1.2.3-70-g09d2