From 517dcb09609999dd96390a7db1690a35bf39508f Mon Sep 17 00:00:00 2001 From: Renaud G Date: Wed, 19 Dec 2018 23:39:49 +0100 Subject: fix several little issue. --- cli/main.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'cli') diff --git a/cli/main.cpp b/cli/main.cpp index 0f984c1..e93c492 100644 --- a/cli/main.cpp +++ b/cli/main.cpp @@ -259,6 +259,7 @@ int startDiceParsing(QStringList& cmds,QString& treeFile,bool withColor, EXPORTF QString warnings = parser.humanReadableWarning(); QStringList strLst; QStringList listOfDiceResult; + QString cmdRework = parser.getDiceCommand(); if(parser.hasIntegerResultNotInFirst()) { @@ -357,21 +358,21 @@ int startDiceParsing(QStringList& cmds,QString& treeFile,bool withColor, EXPORTF switch(format) { case TERMINAL: - displayCommandResult(scalarText, resultStr, array, withColor, cmd, error,warnings, comment, allSameFaceCount, allSameColor); + displayCommandResult(scalarText, resultStr, array, withColor, cmdRework, error,warnings, comment, allSameFaceCount, allSameColor); break; case SVG: - displaySVG(scalarText, resultStr, array, withColor, cmd, error,warnings, comment, allSameFaceCount, allSameColor); + displaySVG(scalarText, resultStr, array, withColor, cmdRework, error,warnings, comment, allSameFaceCount, allSameColor); break; case BOT: case MARKDOWN: - displayMarkdown(scalarText, resultStr, array, withColor, cmd, error,warnings, comment, allSameFaceCount, allSameColor); + displayMarkdown(scalarText, resultStr, array, withColor, cmdRework, error,warnings, comment, allSameFaceCount, allSameColor); break; case JSON: - displayJSon(scalarText, resultStr, array, withColor, cmd, error,warnings, comment, allSameFaceCount, allSameColor); + displayJSon(scalarText, resultStr, array, withColor, cmdRework, error,warnings, comment, allSameFaceCount, allSameColor); break; #ifdef PAINTER_OP case IMAGE: - displayImage(scalarText, resultStr, array, withColor, cmd, comment, allSameFaceCount, allSameColor); + displayImage(scalarText, resultStr, array, withColor, cmdRework, comment, allSameFaceCount, allSameColor); break; #endif } -- cgit v1.2.3-70-g09d2