diff options
Diffstat (limited to 'cli')
| -rw-r--r-- | cli/main.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cli/main.cpp b/cli/main.cpp index 0008cba..dbeb894 100644 --- a/cli/main.cpp +++ b/cli/main.cpp @@ -376,8 +376,10 @@ int startDiceParsing(QStringList& cmds, QString& treeFile, bool withColor, EXPOR stringResult.replace(QStringLiteral("µ%1").arg(i), (*it)); --i; } - - resultStr= stringResult; + bool isInt= true; + stringResult.toInt(&isInt); + if(!isInt) + resultStr= stringResult; } if(format == BOT) { |